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

#1 2010-10-27 09:22:31

13suy
New Scratcher
Registered: 2010-09-20
Posts: 6

I Need Help!!! Quick!!!!!!!!

Can someone tell me how to make a sprite STAND and MOVE on a platform???

Offline

 

#2 2010-10-27 10:42:45

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I Need Help!!! Quick!!!!!!!!

Do you mean like a gravity script and a movement script?
A simple gravity script would just be

When Flag Clicked
Forever if not touching colour (Ground colour)
Change Y by -1

Movement scripts would just be the same old

When Right arrow pressed
Change X by 3

And

When Left arrow pressed
Change X by -3


Those are the simplest ways of doing it.

Offline

 

#3 2010-10-27 10:56:55

13suy
New Scratcher
Registered: 2010-09-20
Posts: 6

Re: I Need Help!!! Quick!!!!!!!!

i mean like a platform floating in the air...

Offline

 

#4 2010-10-27 14:06:38

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: I Need Help!!! Quick!!!!!!!!

add 2 points to a list ( x pos )
then let it pick 2 random y positions for the y list (and wait 1 secound)
then on the man set it's costume direction thingy ( when you click edit on a costume , the thing in the bottom left that is a picture of where 2 lines meet forming a right angle.) to wherever the bottom of the object is and then make it go to x : 0 y : item 1 of y pos
and wherever the points are the man will follow

Offline

 

#5 2010-10-27 14:14:27

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: I Need Help!!! Quick!!!!!!!!

13suy wrote:

i mean like a platform floating in the air...

Could you be a bit clearer?
The scripts I gave would work for platforms in the air

Offline

 

#6 2010-10-27 14:18:50

cruelty247
Scratcher
Registered: 2009-07-22
Posts: 100+

Re: I Need Help!!! Quick!!!!!!!!

so would mine just it wouldn't work with hand-drawn graphics....
oops i forgot 1 sprite would have to draw from 1 point to the other sorry....

Offline

 

Board footer