<div dir="ltr"><div>Hi Julie,</div><div><br></div><div>I guess you are using Alice 3.2.5. I made a simple game in Alice 3.2.5 that does something similar. When ammo hits a target both disappear. In the collision started event listener the code checks if the ammo is visible and if it is a procedure is called:</div><div><br></div><div><img src="cid:ii_14de277b52b654f6" alt="Imágenes integradas 1" width="472" height="265"><br></div><div><br></div><div>When the DestroyAlien procedure gets called it compares the received SThing parameter with each one of the members of an array that contains all the destroyable objects (the aliens). The comparison is made using the toString function:</div><div><br></div><div><img src="cid:ii_14de27bd679af1c4" alt="Imágenes integradas 2" width="472" height="265"><br></div><div><br></div><div>When the hit alien is found the ammo and the alien grow and shrink back very fast and then both disappear.</div><div><br></div><div>This video shows it running: <a href="https://www.youtube.com/watch?v=kROiAz7xeL0">https://www.youtube.com/watch?v=kROiAz7xeL0</a></div><div><br></div><div>The project is attached.</div><div><br></div><div>Leonel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-10 7:43 GMT-06:00 JOHNSON JULIE M. <span dir="ltr">&lt;<a href="mailto:JJOHNSON@williamsvillek12.org" target="_blank">JJOHNSON@williamsvillek12.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">How do you take an object and when it collides with one of the objects from the array have the object hit’s opacity turn to 0?  I can do collision and have the hitting object disappear or turn or move but do not know how to make the object
 hit disappear.  I assumed you would do this in the collision starter also but could be wrong.<u></u><u></u></p>
<p class="MsoNormal">Thanks.  Julie Johnson<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
alice-teachers mailing list<br>
<a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br>
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br></blockquote></div><br></div>