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!
PS: Look at my other projects if you read this, Thanks!
[blocks]<switch to costume[ Happy face ] [/blocks]
OH and post a comment on my project and not here! THanks again!
why wont the link work?
Last edited by tom5X5 (2010-07-18 16:12:38)
Offline
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.
Offline
Yep, I can move this for you 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
Last edited by coolstuff (2010-07-18 18:59:35)
Offline
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.
Offline