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

#1 2008-08-12 02:03:50

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Jumping

Call me stupid, but can somebody tell me, how should i make my sprite jump?

And, if, for example, half of the stage is a black line which is the "ground", and the other side is just white which is the "edge". How should i make him fall when he reaches the "edge"?

Last edited by ChainzzDB (2008-08-12 02:15:34)


http://scratch.mit.edu/users/ChainzzDB

Offline

 

#2 2008-08-12 02:20:00

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Jumping

Do you mean like gravity? OR as someone pointed out, I guess it's also velocity...


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-08-12 02:35:08

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Re: Jumping

Gravity, actually.


http://scratch.mit.edu/users/ChainzzDB

Offline

 

#4 2008-08-12 04:15:45

themaker123
Scratcher
Registered: 2008-07-04
Posts: 7

Re: Jumping

why dont you use these blocks add this on you player thats going to jump.

<when green flag clicked>
<forever if> <<  <not> <touching[ ground  >>
<change y by( -2
<forever if> touching[ ground  >>
<change y by( 2


<when green flag clicked>
<forever>
<if> << <key[ up  ]pressed?> <and><touching[ the ground  >>
<change y by( 70

thats the easy way to do it

Offline

 

#5 2008-08-12 04:45:11

adityasm9
Scratcher
Registered: 2008-03-12
Posts: 100+

Re: Jumping

ChainzzDB wrote:

Call me stupid, but can somebody tell me, how should i make my sprite jump?

And, if, for example, half of the stage is a black line which is the "ground", and the other side is just white which is the "edge". How should i make him fall when he reaches the "edge"?

there is nothing stupid in asking questions

Offline

 

#6 2008-08-12 04:57:39

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Re: Jumping

Wow. People are really smart and helpfull here. Not like in other places...

Thanks, everybody.


http://scratch.mit.edu/users/ChainzzDB

Offline

 

Board footer