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

#1 2010-02-08 22:50:51

fludd12
Scratcher
Registered: 2010-02-07
Posts: 9

Gravity: HELP!

Hello. It is me, fludd12. I am asking your help, users. I can make gravity. dandy good gravity. but when I do, jumping is IMPOSSIBLE. Please help. thanks.


My stuff | Ask me for an animated Icon! I will put it up on Mediafire!

Offline

 

#2 2010-02-08 23:50:19

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Gravity: HELP!

What type of gravity do you want? There's gravity with velocity, simple falling scripts, and more.  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2010-02-12 06:54:12

EmperorEvil
Scratcher
Registered: 2009-02-13
Posts: 1000+

Re: Gravity: HELP!

make a variable called, JUMPING. Your gravity script should be:
GreenFlag Clicked,
Foreverif not touching color[] and jumping=0
change y by -2

and jumping should be:
When Green Flag clicked
Forever If touching color[] and Key [Up] pressed?
Set Jump to 1
repeat 10 times, Change y by 4
Set jump to 0

You should be able to use this script.


http://oi54.tinypic.com/t8ogle.jpg http://blocks.scratchr.org/API.php?user=veggieman001&action=onlineStatus

Offline

 

#4 2010-02-12 15:33:01

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Gravity: HELP!

Gravity Wells

Last edited by Ace-of-Spades (2010-02-12 15:34:26)


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

Board footer