Right, so I'm making a game and I want the player to be able to double jump. But. I can't figure out how to do it. I've tried a couple different scripts but none of them seem to work.
And if at all possible, on the double jump it would be cool to have the player (which is a square) do a 360 in the air before landing back down. But I'm afraid that will confuse the sensor sprite. Any possible solutions?
Offline
Dose this work?
[scratchblocks]
set [Jump v] to 0
if <key up arrow pressed v>
set [Jump v] to 1
Jump script
end
if <<key up arrow pressed> and <Jump = 1>>
Jump script
Offline
Dose this work?
set [Jump v] to 0 if <key up arrow pressed v> set [Jump v] to 1 Jump script end if <<key up arrow pressed> and <Jump = 1>> Jump script
Offline
Walkthrough101 wrote:
Does this work?
set [Jump v] to 0 if <key up arrow pressed v> set [Jump v] to 1 Jump script end if <<key up arrow pressed> and <Jump = 1>> Jump script
Spelling and Scratchblocks fixed- remember to add (/scratchblocks) In [] brackets to the end of your scratchblocks!
EDIT- hmm seems i was outposted by a mod who corrected your scratchblocks anyway. Thanks Mods! Oh no it was you again I'll stop speaking now
Last edited by Willpower (2012-10-20 10:02:24)
Offline
Walkthrough101 wrote:
Dose this work?
set [Jump v] to (0) if <key [up arrow v] pressed ? > set [Jump v] to (1) Jump script end if <<key [up arrow v] pressed ?> and <(Jump) = (1)>> Jump script
fixed
Last edited by gfchll (2012-10-20 16:25:23)
Offline
gfchll wrote:
Walkthrough101 wrote:
Dose this work?
set [Jump v] to (0) if <key [up arrow v] pressed ? > set [Jump v] to (1) Jump script end if <<key [up arrow v] pressed ?> and <(Jump) = (1)>> Jump scriptfixed
How was that done, I mean with the colors?
Offline
Walkthrough101 wrote:
gfchll wrote:
Walkthrough101 wrote:
Dose this work?
set [Jump v] to (0) if <key [up arrow v] pressed ? > set [Jump v] to (1) Jump script end if <<key [up arrow v] pressed ?> and <(Jump) = (1)>> Jump scriptfixed
How was that done, I mean with the colors?
It was done by making the scratch blocks in the correct syntax.
Offline