This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-21 09:20:21

IceFlower101
New Scratcher
Registered: 2011-02-24
Posts: 4

How do you make a ball move up a diagonal line?

I have run into a couple problems when trying to get a ball to move up a diagonal line.
Please help.

Offline

 

#2 2013-01-21 09:37:20

bonechill
Scratcher
Registered: 2012-05-02
Posts: 500+

Re: How do you make a ball move up a diagonal line?

IceFlower101 wrote:

I have run into a couple problems when trying to get a ball to move up a diagonal line.
Please help.

can you post what you have so far, I might be able to help if you do.


http://www.planetminecraft.com/files/sigs/scratch9p_693826_sig.jpg

Offline

 

#3 2013-01-21 20:48:44

AgentCNF
Scratcher
Registered: 2012-08-27
Posts: 21

Re: How do you make a ball move up a diagonal line?

when [space v] key pressed
forever
 change x by [10]
 change y by [10]
end
Modify this for your game. you can change the angle by adjusting the x and y.
And this script will make it go forever. If you only want the sprite to move for a limited time, replace the "Forever" script with a "Repeat" script.

Ask if you have a question.

Last edited by AgentCNF (2013-01-21 20:54:18)


Go St. Louis Cardinals!!! I Hate The Cubs!

Offline

 

Board footer