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

#1 2010-05-17 22:04:03

4lover
Scratcher
Registered: 2010-04-24
Posts: 500+

How do you make platforms

How do you make platforms so when you jump on them you don't go through and it works efficiantly for a scroller.

Last edited by 4lover (2010-05-17 22:04:35)


Check out this awesome new zombie-cod type of game: http://scratch.mit.edu/projects/4lover/1975649

Offline

 

#2 2010-05-17 22:53:40

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do you make platforms

if < touching [ sprite ] > <--- You could also use a colour, but you have to make sure all platforms are coloured the same.
  change y by 2
else
  change y by -2
=

That should take care of gravity and keep it so that it won't fall through.

Hope that helped!

Offline

 

Board footer