I am making a lame little game for this internet class I am in… anyway, I need to get it so when a rock hits your character he gets hurt, I have all the Basic ideas and whatnot but when I try to use collision detection as in the tutorial on this site it is ridiculously off, for some reason it seems to think that no matter where he is he is hitting a rock…
I noticed the tutorial was for flash 5, could it make a difference that I am using flash MX?
well, the easiest way would be a hit test. inside of the rock animations i would put:
if (_root.character.hitTest(this._x, this._y, true)) {
health -= #;
(and if you have an animation for injuies, put in a tell target here)
}
somewhere else put a thing that says:
if (health <= 0) {
(goto death animation)
(goto you lose screen)
}
I unfortunately cannot host the file, here at the school there are security blocks that prevent me from doing so. I really wish I could cause it is hard for me to really explain what is going on.
save the file on disk, take it home and post it