This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-09 07:35:17

SodaProductions
New Scratcher
Registered: 2013-02-02
Posts: 18

platformer???????????????????????????????

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

 

#2 2013-02-09 11:41:47

Sqervay
New Scratcher
Registered: 2012-10-28
Posts: 52

Re: platformer???????????????????????????????

Maybe you'll find here something:
http://wiki.scratch.mit.edu/wiki/Scratch_Wiki:Table_of_Contents/Scripting_Tutorials

For other things ask a bit more specific...  smile

Offline

 

#3 2013-02-10 07:38:42

SodaProductions
New Scratcher
Registered: 2013-02-02
Posts: 18

Re: platformer???????????????????????????????

Landing and not falling through and dieing with starting over going to the next Level
[scratchblocks]
[soda can v]

Offline

 

#4 2013-02-10 07:42:41

SodaProductions
New Scratcher
Registered: 2013-02-02
Posts: 18

Re: platformer???????????????????????????????

go to [soda can v]
ssssssssssssssssssssssccccccccccccccccccccrrrrrrrrrrrrrraaaaaaaaaaaaaaaattttttttttttccccccccchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhsssssssssssssssssccccccccccccccccccccccccccccccccctttttttttttttttttttttttttttttttttttccccchhhhhhhssssssssssssssssrrrrrrrrrrrrraaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttccccccccccccccccccccccccccccccccccchhhhhhhhh

Offline

 

#5 2013-02-10 07:48:38

shadowmouse
New Scratcher
Registered: 2013-02-03
Posts: 100+

Re: platformer???????????????????????????????

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

 

#6 2013-02-10 14:01:36

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: platformer???????????????????????????????

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  smile

SodaProductions wrote:

go to [soda can v]
ssssssssssssssssssssssccccccccccccccccccccrrrrrrrrrrrrrraaaaaaaaaaaaaaaattttttttttttccccccccchhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhsssssssssssssssssccccccccccccccccccccccccccccccccctttttttttttttttttttttttttttttttttttccccchhhhhhhssssssssssssssssrrrrrrrrrrrrraaaaaaaaaaaaaaaaaaaaatttttttttttttttttttttccccccccccccccccccccccccccccccccccchhhhhhhhh

Please don't block spam  smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2013-02-12 10:43:15

kaboompow
Scratcher
Registered: 2012-08-08
Posts: 9

Re: platformer???????????????????????????????

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)


http://beta.scratch.mit.edu/static/site/galleries/thumbnails/19/2162.png

Offline

 

Board footer