'We' are the same person, Sqervay is my 'private account' and on MaanGames I'll upload games and the engines...
That's a kind of wall-jumping
Here's a wiki article: http://wiki.scratch.mit.edu/wiki/Wall-Jumping
I work on en-/disabling wall-jumping, but it's very complicated
Offline
when gf clicked forever change [yvel] by (-0.4) set [xvel] to <[xvel] * 0.86> if (touching [floor]) set [yvel] to <[yvel] * -0.34> change y by [yvel] if (touching [floor]) change y by [yvel] if (touching [floor]) change y by [yvel] end end if ([key w v] pressed) change [yvel] by (5) end end if ([key a v] pressed) change [xvel] by (-0.5) end if ([key d v] pressed) change [xvel] by (0.5) end if (touching [floor]) set [xvel] to <[xvel] * -0.8> change x by [xvel] if (touching [floor]) change x by [xvel] if (touching [floor]) change x by [xvel] if (touching [floor]) change y by [xvel] end end end end end+moving
Offline
Sqervay wrote:
when gf clicked forever change [yvel] by (-0.4) set [xvel] to <[xvel] * 0.86> change x by xvel change y by yvel if (touching [floor]) set [yvel] to <[yvel] * -0.34> change y by [yvel] if (touching [floor]) change y by [yvel] if (touching [floor]) change y by [yvel] end end if ([key w v] pressed) change [yvel] by (5) end end if ([key a v] pressed) change [xvel] by (-0.5) end if ([key d v] pressed) change [xvel] by (0.5) end if (touching [floor]) set [xvel] to <[xvel] * -0.8> change x by [xvel] if (touching [floor]) change x by [xvel] if (touching [floor]) change x by [xvel] if (touching [floor]) change y by [xvel] end end end end end+moving
+gravity
+collision detection
Uff, I'm bad in making Scratchblocks...
Offline
Sqervay wrote:
Sqervay wrote:
when gf clicked forever change [yvel v] by (-0.4) set [xvel v] to <(xvel) * (0.86)> change x by (xvel) change y by (yvel) if (touching [floor v]?) set [yvel v] to <(yvel) * (-0.34)> change y by (yvel) if (touching [floor v]?) change y by (yvel) if (touching [floor v]?) change y by (yvel) end end if (key [w v] pressed?) change [yvel v] by (5) end end if (key [a v] pressed?) change [xvel v] by (-0.5) end if (key [d v] pressed?) change [xvel v] by (0.5) end if (touching [floor v]?) set [xvel v] to <(xvel) * (-0.8)> change x by (xvel) if (touching [floor v]?) change x by (xvel) if (touching [floor v]?) change x by (xvel) if (touching [floor v]?) change y by (xvel) end end end end+moving
+gravity
+collision detectionUff, I'm bad in making Scratchblocks...
Well you'll get good sooner or later, so don't worry.
Anyway, fixed.
Last edited by ErnieParke (2013-02-10 16:14:57)
Offline