Hi, it's -Madi-!
I am going to give you a tutorial on how to make an object move off screen smoothly and not just stop at the edge. Let's start!
When you code a character to move forward, it stops at the edge of the screen and it doesn't move off, like this:
1) First, move a character onto the screen. I am using Star Girl.
2) Now, add a new rule for Star Girl:
When play button is tapped:(or whenever you want it to happen)
Repeat __ times (play around with this to get the right number)
Set position to
X: x + 4 (this is your speed, you can change it)
Y: Star Girl y
Now your character should smoothly move off the screen!
If you continue reading this tutorial, up you will learn how to make a character move off the screen diagonally!
All you need to do is change the y value to be:
Y + 4 (you can also change this to be a different number!)
If you change the X to:
X + -4
Your character will go the opposite direction. The same thing with Y!