i have a question about this article. I was wondering if there was possibly a way to simplify this problem dealing with multiple collisions:
http://kirupa.com/developer/actionscript/multiple_collision.htm
is there any way to give each movie clip a variable such as hitMe=true, and somehow write a hittest code that without referencing the name of the movie clip and instead just checking if the variable exists on that movie clip?
----if this hittest (any movie where this variable equals such and such)
--------do (something)
i know i might be dreaming here, im just wondering if there is some usage of code im unaware of to fix this problem.
this would be great for videogames because you say if (my laser) hits (any enemy with varible so and so on it) it dies. putting the code on every enemy the other way around is a bit of a pain sometimes.
anyways, sorry if this is a dumb question.
jason