Im a 9th grade student with a scratch project. I just cant figure out how to make the mazes change to the next costume when my pac man goes to the dot. And also when the pac man touches the walls i dont know how to get him to restart. Please help
http://scratch.mit.edu/projects/firefly143/2030302
Offline
like mickyg said 5 minutes ago,
"tell it "when flag clicked forever if touching 'dot sprite' broadcast next level" then tell the background "when i receive next level next background" hope you understand."
thats how you can get it to switch, and how you get it to restart, is:
[blocks]<when green flag clicked>
<forever>
<if><touching color[ use dropper tool to find color ]
<go to x starting )y point )
<end>
<end>
Offline
i am guesssing that is why there have been some pacman game questions lately? (and why the authors of those posts started the same day)
Offline
Yes....we looked at a pacmac game and we took apart the script so we could understand it. Many students choose to try to make the pacman game...I believe it has been a great learning experience for them. Part of the lesson is about the beauty of forums so I thank you again for your help.
Offline