Make an Object Move Off-Sceeen: By -Madi-


#1

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!)

Tip:

If you change the X to:
X + -4
Your character will go the opposite direction. The same thing with Y!

I hope you learned somthing from this tutorial! :stuck_out_tongue:


#2

Awesome tutorial! :D


#3

Yeyz to ya tutorial!! I laik it!!


#4

Great tutorial! Here's a like! :heart:


#5

Hi -Madi-! People were waiting for you to come back to HS!

But awesome tutorial! :D


#6

Nice tutorial senpai!


#7

Awesome Tutorial

@Madi_Hopscotch_!:smiley:


#8

Great! Gonna add to Topic Portal :slight_smile:


#9

Awesome topic (yet again :joy:)!!!

If I needed to do that I'd use this now lol. Otherwise I'd just use CoSine XD


#10

nice topic, thats really useful


#11

I love this topic!
I am going to code now!


#12

Awesomeness tutorial! :D

Thanks, this'll rly help me :D