How can I make a script so that the airplane in this game I'm working on doesn't go too far to the side when you move the mouse all the way over? It is programmed to follow the mouse pointer. I don't want players to be able to hide overlapping the side of the screen. Here's the link: http://scratch.mit.edu/projects/moose12141/2723806
Offline
So I'll set "boundary" to 220 or something like that, and it should work. Thanks.
Offline
Or you can use something like (if x position > (240 - radius)) set x to (240 - radius), where radius is an approximate value that determines the "radius" of the plane. Do the same for the negative, and use 180 for y correction.
Offline
Thanks for your help. And I'm sure this will be useful for all sorts of projects.
Offline