Discuss Scratch

chuckler96
Scratcher
32 posts

How do I make a border for my scrolling game?

Im making a game with x and y scrolling. How do I make it so once I reach the edge I cant go past? I have this code that makes it so it stops but after I see the white part and if I keep trying to move in that direction it thinks im moving scroll so if I try to go the other way it doesnt let me for a few secs. Thx

The project: https://scratch.mit.edu/projects/608734387
chuckler96
Scratcher
32 posts

How do I make a border for my scrolling game?

chuckler96 wrote:

Im making a game with x and y scrolling. How do I make it so once I reach the edge I cant go past? I have this code that makes it so it stops but after I see the white part and if I keep trying to move in that direction it thinks im moving scroll so if I try to go the other way it doesnt let me for a few secs. Thx

The project: https://scratch.mit.edu/projects/608734387

Also I want to make a boss that bounces off the walls so i think it has to be an edge or smth like that

Powered by DjangoBB