Discuss Scratch

seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Hey, I need help here, I just wan't to know what could I do to make the players playing my game only be able to jump and wait for the character to land to jump again
Cloudly
Scratcher
93 posts

To make players be able to jump only one time and wait for the character to land to jump again.

You could try…

whenclickedrepeatwhatevernumberoftimesyouwantchangeybyhoweverhighyouwantyourcharactertogo;mustbeapositivenumber.foreverifyposition> some numberthenrepeatuntiltouchingcolor?changeybywhatevernumberyouusedabovejustnegative

Hopefully this helped
Squash001
Scratcher
57 posts

To make players be able to jump only one time and wait for the character to land to jump again.

I made a platformer here with jumping: https://scratch.mit.edu/projects/97098201/
You could check out @griffpatch's tutorial for making platformer's which includes jumping.
seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Cloudly wrote:

You could try…

whenclickedrepeatwhatevernumberoftimesyouwantchangeybyhoweverhighyouwantyourcharactertogo;mustbeapositivenumber.foreverifyposition> some numberthenrepeatuntiltouchingcolor?changeybywhatevernumberyouusedabovejustnegative

Hopefully this helped
Thanks but it doesnt work.
Cloudly
Scratcher
93 posts

To make players be able to jump only one time and wait for the character to land to jump again.

seneca1801 wrote:

Cloudly wrote:

You could try…

whenclickedrepeatwhatevernumberoftimesyouwantchangeybyhoweverhighyouwantyourcharactertogo;mustbeapositivenumber.foreverifyposition> some numberthenrepeatuntiltouchingcolor?changeybywhatevernumberyouusedabovejustnegative

Hopefully this helped
Thanks but it doesnt work.

Interesting…I'm sorry about that
seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Squash001 wrote:

I made a platformer here with jumping: https://scratch.mit.edu/projects/97098201/
You could check out @griffpatch's tutorial for making platformer's which includes jumping.

Thanks, but what Im looking for is limited jumping, your project has the same as mine, if you hold space bar you can literally fly.
asivi
Scratcher
1000+ posts

To make players be able to jump only one time and wait for the character to land to jump again.

don't want to fly pressing the space key?
whenspacekeypressed↑jump↑waituntilnotkeyspacepressed?
seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

asivi wrote:

don't want to fly pressing the space key?
whenspacekeypressed↑jump↑waituntilnotkeyspacepressed?

Nope, still doest work
asivi
Scratcher
1000+ posts

To make players be able to jump only one time and wait for the character to land to jump again.

Really?
Please share the related project.
Regards.
seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Ok, shared
seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

seneca1801 wrote:

Ok, shared

Called Parkour
mrbobbygreathead
Scratcher
1000+ posts

To make players be able to jump only one time and wait for the character to land to jump again.

seneca1801 wrote:

seneca1801 wrote:

Ok, shared

Called Parkour
whenspacekeypressedchangejumpby1ifjump<2thenjumpsetjumpto0

Last edited by mrbobbygreathead (Feb. 19, 2016 11:37:54)

seneca1801
Scratcher
15 posts

To make players be able to jump only one time and wait for the character to land to jump again.

mrbobbygreathead wrote:

seneca1801 wrote:

seneca1801 wrote:

Ok, shared

Called Parkour
whenspacekeypressedchangejumpby1ifjump<2thenjumpsetjumpto0

Dont worry i just figured it now but thanks anyways.
AltScratch
Scratcher
8 posts

To make players be able to jump only one time and wait for the character to land to jump again.

asivi wrote:

don't want to fly pressing the space key?
whenspacekeypressed↑jump↑waituntilnotkeyspacepressed?
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
theanonymousweirdo
Scratcher
500+ posts

To make players be able to jump only one time and wait for the character to land to jump again.

AltScratch wrote:

asivi wrote:

don't want to fly pressing the space key?
whenspacekeypressed↑jump↑waituntilnotkeyspacepressed?
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please don't necropost
_Outro_
Scratcher
6 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Try this:
whenclickedforeverifkey up arrowpressed?andtouching platforms?thenchangeybyyour number here

Hope this helps!
applebananajm
Scratcher
5 posts

To make players be able to jump only one time and wait for the character to land to jump again.

Can you help me with this? Heres the code:

whenclickedsetyvto0ifkeyup arrowpressed?thensetyvto15setyvtoyv*8changeybyyv
tank u

btw I think my signature glitched so here's the link: https://scratch.mit.edu/discuss/topic/762976/?page=1#post-7989416v]

Last edited by applebananajm (May 23, 2024 21:34:49)

Woodfur
Scratcher
100+ posts

To make players be able to jump only one time and wait for the character to land to jump again.

applebananajm wrote:

Can you help me with this? Heres the code:

whenclickedsetyvto0ifkeyup arrowpressed?thensetyvto15setyvtoyv*8changeybyyv
tank u

btw I think my signature glitched so here's the link: https://scratch.mit.edu/discuss/topic/762976/?page=1#post-7989416v]
You're checking whether the key is pressed at the instant the flag is clicked and never again. You either need your “if” block in a forever loop or the whole thing under a “when key pressed” hat instead of the flag. In the future please start your own topic instead of necroposting.

Powered by DjangoBB