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

#1 2010-07-18 16:10:48

tom5X5
Scratcher
Registered: 2009-05-16
Posts: 26

Help!!!!!!!

Hi everyone and anyone!

I am making a pacman game but i have a problem - i am trying to make the pacman sprite not go through walls, and i have tried many ways but all of my ways are failing and pacman IS going through walls. I need help!!!!!!!!!!!!!!!!!!
http://scratch.mit.edu/projects/tom5X5/1197235
I cant see what im doing wrong or why its going through walls....
Thanks to anyone who helps!
smile


PS: Look at my other projects if you read this, Thanks!  smile   smile   big_smile
[blocks]<switch to costume[ Happy face  big_smile  ] [/blocks]

OH and post a comment on my project and not here! THanks again!  big_smile


why wont the link work?

Last edited by tom5X5 (2010-07-18 16:12:38)

Offline

 

#2 2010-07-18 18:57:33

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Help!!!!!!!

Wrong forum, you need to either delete and repost this in All About Scratch or we can wait for a Mod to move it. I'll try to get you one in the meantime. Sunday is kind of a slow day btw.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#3 2010-07-18 18:59:00

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

Re: Help!!!!!!!

Yep, I can move this for you  smile  I think it fits a little better in the All About Scratch forum than Show and Tell, which is generally meant for advertising projects.

(Locomule - in the future, you can report posts and tell us to move it and we'll find it faster. Not that this wasn't fast.)

EDIT: I realized that Locomule did report this! Never mind, then  smile

Last edited by coolstuff (2010-07-18 18:59:35)

Offline

 

#4 2010-07-18 19:40:17

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Help!!!!!!!

Thanks a lot. I never did that before so I guess next time I will just do the report, sorry.

The problem is that Pacman is going into the wall, then the script is flipping him and moving him at the same time which makes him move the wrong direction. You need to make a variable like "state" or "mode" or something. Use it to make sure Pacman can't be turned while the "back up" script blocks are operating.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

Board footer