[Thread Prev] [Thread Next]
On Mon, 19 May 2008 01:27:06 -0500, <askanexpert@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
> This is an automatic message sent from the web form at:
> http://mia.openworldlearning.org/howdoi.htm
>
> from: Anonymous <maddogrulz@xxxxxxxxxxx>
> date: Mon May 19 00:27:06 2008
> platform: PC
> version: MicroWorlds 2.03
>
> how do i use touching? to make a pacman game
You can say:
to startup
when [touching? "pacmanturtle "ghost1turtle] [melt.and.die]
when [touching? "pacmanturtle "ghost2turtle] [melt.and.die]
when [touching? "pacmanturtle "ghost3turtle] [melt.and.die]
when [touching? "pacmanturtle "ghost4turtle] [melt.and.die]
end
to melt.and.die
pacmanturtle,
...
reset
end
to reset
pacmanturtle, setpos [...]
ghost1turtle, setpos [...]
ghost2turtle, setpos [...]
ghost3turtle, setpos [...]
ghost4turtle, setpos [...]
...
end
Remember to call your pacman turtle "pacmanturtle", and your ghost turtles:
ghost1turtle, ghost2turtle, ghost3turtle, ghost4turtle, respectively
Daniel
OpenWorld Learning
Previous by thread:
Re: MIA, Ask an Expert: pacman game
Next by thread:
MIA, Ask an Expert: reverse a word
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|