Disable Edge Of Screen Collisions


I’ve started making an open world game and was wondering if there was a way to disable edge of screen collisions. At the moment, everything just gets caught at the edge of the screen when you move around. If there’s any way to do it, please share with me your knowledge.
Thanks :stuck_out_tongue_winking_eye:


This mess happens!


Have it disappear once hitting the edge.

And reappear if moved


I’m pretty sure that causes the same problem


Why don’t you try it?


I just did. Any other ideas?


Don’t use change x and y, or move forward. They can’t go off the screen.


What do you mean?


Use the set position and addition blocks


I don’t understand your problem


Look at the code in this: https://c.gethopscotch.com/p/zj5wy5rgk


But the code is just fine! What’s the problem?


Previously, everything would collect at the edges instead of moving smoothly


I fixed the problem thanks to @Petrichor


Move forward, change x and change y blocks do not allow the character to move outside the screen. This is not the case with set position though.


I’ll also add that if an object is positioned off screen (using Set Position), any Move Forward will immediately snap the object back to the screen edge.


Which was my problem.