Hello! Trogdor667 said to come here and tell you how to make a smooth jump.
1. Make a variable called Vy (it can actually be called anything, but that name makes it simple)
set [Vy] to (0)2. You will need 3 scripts, here is the first one:
when I receive [START v] forever if <key [up arrow v] pressed?> set [Vy v] to (20) repeat until <touching color [#000000]> change [Vy v] by (-1) end end end3. Here's the second (remember, these scripts all go in the sprite that moves)
when I receive [START v] forever if <touching color [#000000]> set [Vy v] to (0) end end4. Here's the last one:
when I receive [START v] forever change y by (Vy) endNow when you press the up arrow, it should give you a smooth jump!
when I receive [START v] set [Vy v] to (0) forever if <touching color [#000000]> set [Vy v] to (20) repeat until <touching color [#000000]> change [Vy v] by (-1) end end if <touching color [#000000]> set [Vy v] to (0) end change y by (Vy) end
Last edited by Spyderblade (2012-10-18 10:33:27)
Offline
Spyderblade wrote:
Hello! Trogdor667 said to come here and tell you how to make a smooth jump.
1. Make a variable called Vy (it can actually be called anything, but that name makes it simple)set [Vy] to (0)2. You will need 3 scripts, here is the first one:when I receive [START v] forever if <key [up arrow v] pressed?> set [Vy v] to (20) repeat until <touching color [#000000]> change [Vy v] by (-1) end end end3. Here's the second (remember, these scripts all go in the sprite that moves)when I receive [START v] forever if <touching color [#000000]> set [Vy v] to (0) end end4. Here's the last one:when I receive [START v] forever change y by (Vy) endNow when you press the up arrow, it should give you a smooth jump!
If you want to, you can put this all into one script: (but it's slightly slower)when I receive [START v] set [Vy v] to (0) forever if <touching color [#000000]> set [Vy v] to (20) repeat until <touching color [#000000]> change [Vy v] by (-1) end end if <touching color [#000000]> set [Vy v] to (0) end change y by (Vy) end
how do i et picher for my sig?
Offline
bump
Offline
Nice
Offline
Bump
Offline
Can Any one here make a water bad guy
Last edited by Lordfireball (2012-10-20 15:14:24)
Offline
Guys fireballer 1.2 is here http://scratch.mit.edu/projects/Lordfireball/2848257
Offline
i will make a water bad guy. but can ther be water bad guys?
Offline
Yes
Offline
what do i ned to do with the 1.2?
Offline
trogdor667 wrote:
what do i ned to do with the 1.2?
More levels and buy guys
Offline
Hi everyone! Lordfireball invited me to come work with you on fireballer! How can I help? (other than doing the jumping, I'm working on that now...)
Offline
Ok, this is my new test account! I finished the new jump, here it is:
http://scratch.mit.edu/users/SpyderXtras
Offline
Lordfireball wrote:
trogdor667 wrote:
what do i ned to do with the 1.2?
More levels and buy guys
ok cool
Offline
long time since i last posted, but i still check in everyday!
Offline
chongyian wrote:
long time since i last posted, but i still check in everyday!
Gald your back
Offline
Offline
bump
Offline
bump? bump
Offline
I'm back
Offline
bump bump bump and bump
Offline