Need to now how to program a jump for a sprite. Sorry I'm new to scratch and am still figuring stuff out.
Offline
<when green flag clicked>
<set{ VelocityY }to( 0
<forever>
<if><touching[ GROUND ]
<set{ VelocityY }to( 1
<if> <key[ Up ]pressed?>
<set{ VelocityY }to( 15
<end>
<end>
<change y by( VelocityY
<change{ VelocityY }by( -1
<end>
Last edited by Zelda123 (2008-06-23 18:04:17)
Offline
well....thats a rather advanced way to put it
but hey,it works
Offline
zachandrew0123 wrote:
well....thats a rather advanced way to put it
but hey,it works
Its not an advanced way to do it. I can't think of a simpler way to make a sprite jump in the same way.
Offline
archmage wrote:
zachandrew0123 wrote:
well....thats a rather advanced way to put it
but hey,it worksIts not an advanced way to do it. I can't think of a simpler way to make a sprite jump in the same way.
What about the
[blocks]<repeat( X[/blocks]
[blocks]<change y by( #[/blocks]
[blocks]<end>[/blocks]
[blocks]<repeat( X[/blocks]
[blocks]<change y by( -#[/blocks]
[blocks]<end>[/blocks]
?
Offline
Bluestribute wrote:
archmage wrote:
zachandrew0123 wrote:
well....thats a rather advanced way to put it
but hey,it worksIts not an advanced way to do it. I can't think of a simpler way to make a sprite jump in the same way.
What about the
[blocks]<repeat( X[/blocks]
[blocks]<change y by( #[/blocks]
[blocks]<end>[/blocks]
[blocks]<repeat( X[/blocks]
[blocks]<change y by( -#[/blocks]
[blocks]<end>[/blocks]
?
That won't make a sprite jump in the same way.
Offline
archmage wrote:
Bluestribute wrote:
archmage wrote:
Its not an advanced way to do it. I can't think of a simpler way to make a sprite jump in the same way.What about the
[blocks]<repeat( X[/blocks]
[blocks]<change y by( #[/blocks]
[blocks]<end>[/blocks]
[blocks]<repeat( X[/blocks]
[blocks]<change y by( -#[/blocks]
[blocks]<end>[/blocks]
?That won't make a sprite jump in the same way.
No, but it's simpler
Offline