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

#1 2013-03-07 14:07:41

lion44
Scratcher
Registered: 2012-12-01
Posts: 39

Platformer

Hello Scratch users,
I need help making a pig stay on the grass in the platformer I'm working on.
Any Ideas?  please leave a script picture in your response.
Thank you.
-Lion44

Offline

 

#2 2013-03-07 14:56:17

lion44
Scratcher
Registered: 2012-12-01
Posts: 39

Re: Platformer

Please leave a reply. 
Thank you.
-Lion44

Offline

 

#3 2013-03-07 22:36:22

shpeters
Scratcher
Registered: 2011-12-11
Posts: 100+

Re: Platformer

Assuming that the pig is on the left side:

when gf clicked
if <not <touching [grass v]?>>
point in direction [90 v]
move (-10) steps
end
Modifications can be made to the code to make the pig go unable to go in other directions as well.


http://i.imgur.com/bboYO.pnghttp://i.imgur.com/66Yki.gifhttp://i.imgur.com/uLUsl.jpg

Offline

 

#4 2013-03-09 12:20:46

lion44
Scratcher
Registered: 2012-12-01
Posts: 39

Re: Platformer

Thanks.

Offline

 

Board footer