i've been making a game but when i almost finished it, i got stuck , i cant figure out how to solve this problem unless there is a code block like, if touching left edge or right edge of sprite 1 do this. Im positive that this will help scratchers.
Does any1 agree this is a good idea?
Offline
well, a good idea would be to make two sprites that run along the edges of the stage, and hide them. the collision (if touching) still works when the sprite's hidden. you just have to be somewhat creative about these things.
[blocks]<forever if><turn cw( )degrees><touching[ <when green flag clicked> [/blocks]
Offline
Or you could check whether the x position is more or less than 0... (more than 0 means right edge, less means left)
Offline