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

#1 2011-01-05 16:32:55

shinigamiami
New Scratcher
Registered: 2010-10-26
Posts: 3

Help with walls

This is my game: http://scratch.mit.edu/projects/shinigamiami/1367727

I'm having a lot of issues with this but the most annoying one of all is I don't get why my sprite keeps going through the walls even though I set up the script basically like how it's set up in the Pac Man video here: http://learnscratch.org/index.php?option=com_content&task=view&id=223&Itemid=313

Can anybody help me to fix this and any other mistakes in my program? This is my first time using scratch...

Offline

 

#2 2011-01-05 17:39:00

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Help with walls

http://scratch.mit.edu/projects/06dknibbs/1519005 - Fixed the problem for you, the character now doesn't go through the walls.  smile

I noticed you had the sprite automatically running in one direction, and you were trying to use colour recognition for the walls so I changed the script so that if the sprite hits a wall, it moves back a few steps instead of forwards. Hopefully this helps, it's looking like a nice project so far.  big_smile

Last edited by 06dknibbs (2011-01-05 17:39:19)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2011-01-07 16:33:41

shinigamiami
New Scratcher
Registered: 2010-10-26
Posts: 3

Re: Help with walls

Thank you so much!!!  big_smile  You saved my life!

Offline

 

Board footer