[MWForum]on touch command
   
    Daniel Ajoy
     
    mwforum@lists.mathcats.com
       
    Fri, 21 Jan 2005 15:47:13 -0500
    
    
  
On 21 Jan 2005 at 11:50, Mary Hansell wrote:
> I forgot to say that we used Microworlds 2.0
> I know there is a touching? command.....but not sure how to use it.
> THe students want to do something like :  when the ghost touches the
> pacman, the pacman disappears.
> 
> Mary
> 
Hi Mary,
> when the ghost touches the pacman, the pacman disappears.
when [touching? "g1 "pac] [pac, ht stopall]
I use it in this context:
to startup
pac, setshape [pac1 pac2] st
g1, setshape [ghost1] bk 100
everyone [clickon]
when [touching? "pac "g1] [pac, ht stopall]
end
Please, tell me if you want me to send you a sample
project.
Daniel
OpenWorld Learning