[vet-mm] Actionscript help please

Brian Pearce BPearce at clc.vic.edu.au
Wed Feb 20 16:49:44 EST 2008

G'day John,

Could you have forgotten to name the actual instance of your alien movie
clip on the stage. I tend do that a bit and then spend time trying to
puzzle out why my scripts aren't working.

Just a suggestion,

Brian Pearce

-----Original Message-----
From: vet-mm-bounces at edulists.com.au
[mailto:vet-mm-bounces at edulists.com.au] On Behalf Of EDWARDS. John
Sent: Wednesday, 20 February 2008 5:41 PM
To: VET Multimedia Teachers' Mailing List
Subject: [vet-mm] Actionscript help please

Hi All,

I am trying to do a Space Invaders game with my Cert 2 MM students. I
have a single alien movieclip that moves across the screen and a bullet
movieclip that moves up to the alien. 

I have the hittest code that I am unsuccessfully trying below:

This is in the Bullet MovieClip

if(_root.alien, hitTest(_root.bullet)){
		trace("in hittest");

The two movieclips collide and I get the trace appearing which means the
hittest is successful. I have the bullet remove itself with the line :
this.removeMovieClip();  My problem is removing the alien movieclip when
the hittest is successful.

Could someone please point a novice in the right direction?

Many Thanks,

John Edwards
Lavalla Catholic College
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended
is prohibited. If you received this in error, please contact the sender
delete the material from any system and destroy and copies.

This email has been scanned by MailMarshal, an email content filter.

http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe
VET Multimedia Mailing List kindly supported by
http://www.vcaa.vic.edu.au/vet/programs/multimedia/multimedia.html -
Victorian Curriculum and Assessment Authority and
http://www.pixeled.org.au  - PixelEd Multimedia Teachers Association

More information about the vet-mm mailing list