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

#1 2012-01-22 17:26:13

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Gravity

How do you make it appear so that when a sprite is jumping and it does not get to a platform, it falls down?

Offline

 

#2 2012-01-22 19:36:00

Bsteward
Scratcher
Registered: 2010-04-13
Posts: 100+

Re: Gravity

Check out this wiki article.


Interested in the future of Scratch?http://ffs.us.to/1.png
http://i40.tinypic.com/2i9jejd.jpgIt has http://bit.ly/Ol3MfD views. Click to add one more!

Offline

 

#3 2012-01-22 22:09:22

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: Gravity

Say somethIng like this

When green flag clicked
Forever
If ( not touching ( color of platform))
Repeat until (touching ( color of platform))
Change y by -5


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

#4 2012-01-23 17:02:49

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Re: Gravity

Thanks SOOOO Much!

P.S. How do you make a system that can keep track of points that you earn???

Thanks

Fortmcas

Offline

 

#5 2012-01-23 21:50:08

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: Gravity

fortmcas wrote:

Thanks SOOOO Much!

P.S. How do you make a system that can keep track of points that you earn???

Thanks

Fortmcas

Use variables  smile  tell me what action it has to do to get a point and I can help more  big_smile


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

#6 2012-01-23 22:00:30

mr_fish_fish
Scratcher
Registered: 2009-11-12
Posts: 52

Re: Gravity

Also, you could try using lists. They can store a list of of different scores and points (hence the name). Check out the example project FruitcraftRPG (under games).


/\/\ ® _ |= 1 § |-| _ |= 1 § |-|

Offline

 

#7 2012-01-24 15:57:59

fortmcas
Scratcher
Registered: 2009-07-26
Posts: 48

Re: Gravity

My sprite would have to reach certain platforms(heights for the game) to collect points.  When it gets to the final prize, it also gets bonus points.

Offline

 

Board footer