I want to put spindash in my new Greenson game, but it's not working.
when gf clicked forever if <<key [down arrow v] pressed?> and <key [s v] pressed?>> set [Spindash v] to [1] switch to costume [Spindash v] end
when gf clicked forever if <not <<key [down arrow v] pressed?> and <<not <key [s v] pressed?>> and <(Spindash) = [1]>>>> move (50) steps set [Spindash v] to [0] end endHeelp!
Offline
I'm not sure if this is just because the forum squashed your code but it looks like you have:
if <not <(key [down arrow v] pressed?) and <<not (key [s v] pressed?)> and <(spindash) = [1]>>>>which would be bad I think...one moment.
when gf clicked forever if <<not (key [s v] pressed?)> and <(spindash) = [1]>> move [50] steps set [spindash v] to [0] switch to costume [standing v] or crouching costume, maybe do an if else for that else if (key [down arrow v] pressed?) switch to costume [crouch v] if (key [s v] pressed?) set [spindash v] to [1] switch to costume [spindash v] end else rest of movement code end end
Last edited by BetaSmozzick (2012-12-24 08:35:38)
Offline
I will test.
Thanks!
*kiss*
when gf clicked Scratch on!
Offline
Hey, wait, it's not working
greenson moves when i press the two keys at the same time,
and he don't move when i realese down but not s.
Offline
KateblurTheHedgehog wrote:
Hey, wait, it's not working
greenson moves when i press the two keys at the same time,
and he don't move when i realese down but not s.
See this post http://scratch.mit.edu/forums/viewtopic.php?id=111900
On portuguese forum.
I guess it can helps you.
Last edited by rlojunior (2012-12-24 10:07:16)
Offline