Disable Edge Of Screen Collisions

Hi,
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:

8 Likes

This mess happens!

2 Likes

Have it disappear once hitting the edge.

And reappear if moved

1 Like

I’m pretty sure that causes the same problem

1 Like

Why don’t you try it?

1 Like

I just did. Any other ideas?

1 Like

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

3 Likes

What do you mean?

2 Likes

Use the set position and addition blocks

2 Likes

I don’t understand your problem

2 Likes

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

1 Like

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

1 Like

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

2 Likes

I fixed the problem thanks to @Petrichor

5 Likes

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.

3 Likes

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.

2 Likes

Which was my problem.

3 Likes