I want to make a game of platforms and I do not know how to make an object jump, with gravity
Offline
Here's a wiki article on jumping if you want to look.
Anyway, I hope that this helps!
Offline
bryan31314 wrote:
I want to make a game of platforms and I do not know how to make an object jump, with gravity
hi bryan31314, Questions with Scratch is not about Help with Scratch- there is a forum for that. Questions with Scratch is about
Post general questions about Scratch or the Scratch website here.
Help with Scripts is
Need help with your Scratch project? Ask here!
But- here is a link to the page of the Scratch Wiki with the answers (i do not know which type of jumping you want with gravity so here are them all) http://wiki.scratch.mit.edu/wiki/Jumping/
I will report this to be moved to Help with Scripts
EDIT- Outposted
Last edited by Willpower (2012-11-25 12:07:49)
Offline
us this script:
when gf clicked forever if <touching [ ground v]> set [vertical velocity v] to (0) else change [vertical velocity v] by (-3.0) change y by (vertical velocity) end end
when [space v] key pressed repeat until <not <touching [ground v]>> change y by [5] end set [vertical velocity v] to (7)
Offline
scratchyrocks wrote:
us this script:
when gf clicked forever if <touching [ ground v]?> set [vertical velocity v] to (0) else change [vertical velocity v] by (-3.0) end change y by (vertical velocity)when [space v] key pressed repeat until <not <touching [ground v]?>> change y by [5] end set [vertical velocity v] to (7)
Fixed and I moved a block to make the script work.
Last edited by ErnieParke (2013-04-18 15:22:30)
Offline
when [space v] key pressed set [gravity v] to (15) change y by (10) repeat until < touching [Sprite 2(Ground) v] ?> change [gravity v] by (-1) change y by (gravity) end say [Maybe this will works...] for (2) secs think [Hmm... Don't write the say and this script!] for (2) secs say [I want to be in the credit] for (2) secs say [Time for some music...] for (2) secs forever play sound [victory v] until done end
Last edited by lutherwenxu (2013-04-18 09:07:33)
Offline