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

#1 2007-06-22 11:26:23

Kaydoodle13
Scratcher
Registered: 2007-05-19
Posts: 25

How would you, I guess, make a monkey jump to get bananas?

HOW WOULD YOU MAKE A SPRITE JUMP, not like a jetpack? I am working on a game that needs this information because there will be a sprite that will jump and eat a certain food that will dissapear when it touches it. (I DO know how to make it dissapear when the sprite touches it.) Anyone have ideas? Now=  sad  If helped,  big_smile

Echo, echo, echo!


._.*._.*._.Kaydoodle13._.*._.*._.

Offline

 

#2 2007-06-22 14:16:16

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: How would you, I guess, make a monkey jump to get bananas?

Lots of ways  big_smile

A simple one might be


Forever
- If Up arrow pressed
- repeat 5
- change y by 1
- repeat 5
- change y by -1
- wait 0.05

Or look at archmages demo

http://scratch.mit.edu/projects/archmage/14600

Last edited by Mayhem (2007-06-22 14:19:17)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2007-06-22 15:18:59

Kaydoodle13
Scratcher
Registered: 2007-05-19
Posts: 25

Re: How would you, I guess, make a monkey jump to get bananas?

Thanks! I'm trying it out right now.


._.*._.*._.Kaydoodle13._.*._.*._.

Offline

 

#4 2007-06-22 15:58:11

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How would you, I guess, make a monkey jump to get bananas?

There are between 40 and 50 projects tagged with the tag "gravity".
Go to any of them and look at how they implemented it.

You have been asking a lot of good questions Kaydoodle13, but you could answer a lot of them yourself by looking at other people's code.  That is why this sharing site was set up---so that people could find examples of code for things they want to do and see how it works.

Almost all your questions for help recently sounded like you were trying to do something like jet-pack girl.  If so, then your best bet is to look at the code for that project and see how it was done.  If, when you try doing something similar, it doesn't work, then you can come to the forum and ask for help---showing the code you wrote and asking why it doesn't behave as you want, rather than just asking over and over for snippets of code.

Offline

 

Board footer