I want to know how to make platformer
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
Offline
Landing and not falling through and dieing with starting over going to the next Level
[scratchblocks]
[soda can v]
Offline
go to [soda can v]ssssssssssssssssssssssccccccccccccccccccccrrrrrrrrrrrrrraaaaaaaaaaaaaaaattttttttttttccccccccchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhsssssssssssssssssccccccccccccccccccccccccccccccccctttttttttttttttttttttttttttttttttttccccchhhhhhhssssssssssssssssrrrrrrrrrrrrraaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttccccccccccccccccccccccccccccccccccchhhhhhhhh
Offline
Just a few tips:
Have an x and y velocity
have a ground colour and hazard colour as well as enemy sprites and a end of level sprite
have a variable called lives and one called level
make a script that goes something like:
if touching ground colour and y velocity < 0 set y velocity to 0
if up arrow pressed change y velocity by 5
if left arrow arrow pressed change x velocity by -5
if right arrow arrow pressed change x velocity by 5
if touching enemy sprite or hazard colour go to (approx): x: -220 y: 150 and change lives by -1
if touching end of level sprite change level by 1
change y velocity by -0.5
then have sprites or backgrounds for the levels which change depending on what value level is.
Hope this helps.
P.S. I haven't done scrathblocks because I always get it wrong, but if someone is good at scratchblocks and sees this, then please redo it.
Offline
SodaProductions wrote:
I want to know how to make platformer
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
That's an extremely broad question that it is really impossible to answer without more specifics. We have no idea what exactly you want help with. If you want a platformer base, there are tons to choose from. If you want help with a specific part of you code, post the code and we'll try to help
SodaProductions wrote:
go to [soda can v]ssssssssssssssssssssssccccccccccccccccccccrrrrrrrrrrrrrraaaaaaaaaaaaaaaattttttttttttccccccccchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhsssssssssssssssssccccccccccccccccccccccccccccccccctttttttttttttttttttttttttttttttttttccccchhhhhhhssssssssssssssssrrrrrrrrrrrrraaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttccccccccccccccccccccccccccccccccccchhhhhhhhh
Please don't block spam
Offline
make a variable called y speed and
when gf clicked forever if <touching color [#00FF00]> set [y speed v] to (0) change y by (2) end if <<key [up arrow v] is pressed> and <touching color [#00FF00]>> set [y speed v] to (10) end if <key [left arrow v] is pressed> change x by (-3) end if <key [right arrow v] is pressed> change x by (3) end change y by (y speed) end
Last edited by kaboompow (2013-02-12 11:14:06)
Offline