how do I set the screen up so if the Player flies the ship down and it crosses over the bottom boundry of the Play area, it will show up entering on the top side of the screen? Remember Pac-Man? He would go off the screen on the left and show back up on the right. That is what I am wanting to do. Than ks
What you want to do is called world-wrap. It’s like this:
//To wrap bottom to top
If player.Y() >= (put a value of y here that is the bottom of the screen)
Do = (put a value of y here that is the top of the screen + 5) to the y position of ship.
//To wrap top to bottom
If player.Y() <= (put a value of y here that is the top of the screen)
Do = (put a value of y here that is the bottom of the screen + 5) to the y position of ship.
Hope that makes sense to you.
LOL. Yeah. I am assuming that is HTML5?
How do I determine what the Top and Bottom Y values are? And I see you used // But I’m not too sure what that represents or how to write it. Action>Condition> etc
// ← This is used to indicate a comment.
Player Y conditions are in Conditions → All objects → Position → Y-position
Do = x to Y value is in - Actions → All objects → Position - Y-position
This will work on web platform and native platform.
Find the top and bottom of the screen by going into your scene and moving the mouse down to the bottom. You will see the Y value in the bottom left corner of GameDevelop. Then do the same to get the top Y value. It might take a bit of trial and error to get the values exactly correct.