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

#1 2011-10-03 00:56:22

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

1s 1s platformer

this is how to make a 1script 1sprite platformer (no velocity)

when green flag clicked:
forever:
if: (key (right) pressed)
change x by (5)

if: (key (left) pressed)
change x by (-5)

if: (key (up) pressed)
repeat (50) times:
change y by (1)
if: (key (left) pressed)
change x by (-5)
if: (key (right) pressed)
change x by (5)
if (not (touching color (color of platform)))
repeat until (touching (color of platform))
change y by  (5)
if: (key (left) pressed)
change x by (-5)
if: (key (right) pressed)
change x by (5)

if: (not (touching color (color of platform)))
repeat until (touching (color of platform))
change y by  (5)
if: (key (left) pressed)
change x by (-5)
if: (key (right) pressed)
change x by (5)


sorry if it is unclear.

if you want, here's a link:
http://scratch.mit.edu/projects/K-Jam/1686068


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

#2 2011-10-03 00:58:06

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: 1s 1s platformer

http://scratch.mit.edu/projects/K-Jam/1686068


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

#3 2011-10-03 01:02:50

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: 1s 1s platformer

I believe this belongs in AAS, but I may be mistaken...

Reported just in case.

Offline

 

#4 2011-10-09 17:39:35

SWATKATS12
New Scratcher
Registered: 2011-10-09
Posts: 7

Re: 1s 1s platformer

Thank you, this was very helpful!  big_smile

Offline

 

#5 2011-10-09 20:17:14

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

Re: 1s 1s platformer

Too bad there is no wall detection.  Good for basic platformers though.  Personally, I don't make platformers without wall detection, because I believe they are an essential part of a platformer.

Having said that, I have seen some good platformers without walls.


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

Offline

 

Board footer