Check the wiki and the Platforming tutorial
Last edited by hello12345678910 (2012-01-28 13:31:55)
Offline
when gf clicked forever if <up arrow key pressed> change y by [10] endshould do it, combined with a basic falling engine(gravity)
Last edited by treebark1313 (2012-01-28 13:38:59)
Offline
when gf clicked forever if <not<touching [ground v]?>> repeat until <touching ground> change y by [1] end end if <key [up arrow v] pressed?> change y by [10]
Offline
jimmyboy798 wrote:
when gf clicked forever if <not<touching [ground v]?>> repeat until <touching [ground v]?> change y by (-1) end end if <touching [ground v]?> if <key [up arrow v] pressed?> change y by (10) end end
Fixed it a bit.
Last edited by rdococ (2012-01-28 14:43:12)
Offline
rdococ wrote:
jimmyboy798 wrote:
when gf clicked forever if <not<touching [ground v]?>> repeat until <touching [ground v]?> change y by (-1) end end if <touching [ground v]?> if <key [up arrow v] pressed?> change y by (10) end endFixed it a bit.
forgot the "-" in -1
Offline
There are a bunch of simple jumping scripts available on this page on the Scratch Wiki
Offline
when [up arrow v] key pressed repeat [10] change y by [5] end repeat [10] change y by [-5] endThe top is a hat block
Last edited by funelephant (2012-01-28 18:38:32)
Offline
when green flag clicked set (y velocity) to [0] forever if <touching color [#36E813]?> if <key [up arrow v] pressed?> set [y velocity v] to (10) else set [y velocity v] to (1) end else change [y velocity v] by (-1) end change y by (y velocity) end
Last edited by RedRocker227 (2012-01-29 05:54:36)
Offline
when green flag clicked forever if <key [left arrow v] pressed?> // Movement left change [x velocity v] by (-1) end if <key [right arrow v] pressed?> // Movement right change [x velocity v] by (1) end if <touching [ground v]?> // Jumping if <key [up arrow v] pressed?> change [y velocity v] by (1) end else // Gravity change [y velocity v] by ((y velocity) * (-0.5)) end change [x velocity v] by ((x velocity) * (-0.5)) change x by (x velocity) change y by (y velocity)
Last edited by rdococ (2012-01-29 09:29:46)
Offline
rdodoc, you need to put a "?" before the ">". Then it'll work
Offline
treebark1313 wrote:
when gf clicked forever if <up arrow key pressed> change y by [10] endshould do it, combined with a basic falling engine(gravity)
It barley jumps...
Offline
funelephant wrote:
treebark1313 wrote:
when gf clicked forever if <up arrow key pressed> change y by [10] endshould do it, combined with a basic falling engine(gravity)It barley jumps...
So, change the value of y.
Offline
G0D_M0D3 wrote:
funelephant wrote:
treebark1313 wrote:
when gf clicked forever if <up arrow key pressed> change y by [10] endshould do it, combined with a basic falling engine(gravity)It barley jumps...
So, change the value of y.
She wants to know how to make the full block -_-
Offline
Version I use:
when flag clicked forever if (up key pressed) if (touching ground) change y by [10] end end end
Last edited by Dinoclor (2012-01-29 09:45:02)
Offline