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

#1 2009-12-01 20:20:15

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Gravity

Hey, I'm making a pinball game and I want to know how to program the ball so it has Gravity. Please help!  big_smile


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#2 2009-12-01 20:21:35

Caseycatjasper
Scratcher
Registered: 2009-09-20
Posts: 75

Re: Gravity

Use the gravity ball.


http://dragcave.net/image/YOEn.gif http://dragcave.net/image/oJDi.gif
http://caseycatjasper.dragonadopters.com/dragonanimated_297225.gif<^-Please help my dragons survive by clicking on them!

Offline

 

#3 2009-12-01 20:33:05

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Gravity

just do:

<when green flag>
[forever if <not<touching color [color of the ground or item to land on]>>]
[][change y by (a number; higher, falls faster; preferably 5)]
[][][][][][][][][][][][]


Hope that helps!


Hai.

Offline

 

#4 2009-12-02 10:36:22

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Gravity

Caseycatjasper wrote:

Use the gravity ball.

Zoomreddin wrote:

Yes... I think that will help!

big_smile


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#5 2009-12-02 20:34:08

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: Gravity

fg123 wrote:

just do:

<when green flag>
[forever if <not<touching color [color of the ground or item to land on]>>]
[][change y by (a number; higher, falls faster; preferably 5)]
[][][][][][][][][][][][]


Hope that helps!

Yes I think I can do that.


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#6 2009-12-02 22:56:12

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Gravity

making it yourself is better. Simply great a new variable, and constantly change your character's yval by the variable. Then increase your variable if you not touching the ground and set it to 0 when you are.

Offline

 

Board footer