how can i make the mouse move the screen up down left right as it moves to the edge
First, put all your objects of your map in a separate layer (for example, “Map”). Do not use the Base layer.
Then, for a 800*600 px game, 4 events :
If cursor X position is <= 0 / Do -5 (or wathever value your want) to X position of camera 0 (layer = "Map")
If cursor X position is >= 800 / Do +5 (or wathever value your want) to X position of camera 0 (layer = "Map")
If cursor Y position is <= 0 / Do -5 (or wathever value your want) to Y position of camera 0 (layer = "Map")
If cursor Y position is >= 600 / Do +5 (or wathever value your want) to Y position of camera 0 (layer = "Map")
Edge.zip (2.71 KB)
thank you worked great
Hello I tried this and it’s doing nothing for me at all. I am very new at this, would anyone have any suggestions?
@Jason, please create a new thread instead of reviving an ancient one. You can link this one in your new thread if needed.
And if you do create a new thread, include a screen shot of your events, so we can see what you’ve done .
1 Like