Jump to content

Need help on game


Vzero

Recommended Posts

Hey I'm making a game and the collision code doesn't exactly work on a copyed movie clip:if (this.hitTest(_parent.block) || this.hitTest(_parent.paintblock)) {_x=0_y=0}What do I have to do to fix thatAnd how can I make a program that copys a movieclip

Link to comment
Share on other sites

What do you want to be moved to (0,0)? _x and _y are properties, so say if I wanted the "square" object to move to (0,0) on a true hitTest, then I would have

if (this.hitTest(_parent.block) || this.hitTest(_parent.paintblock)) {	square._x=0;	square._y=0;}

I'm not too good with ActionScript though... what is the problem?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...