Action Script Dictionary example.
if( _root.ball, hittest (_root.square) ){
}
However what happens if you have ‘n’ amount of clips.
how to you get hittest to == true if (_root.???) could be anything.
thanks.
Action Script Dictionary example.
if( _root.ball, hittest (_root.square) ){
}
However what happens if you have ‘n’ amount of clips.
how to you get hittest to == true if (_root.???) could be anything.
thanks.
how bout you just have all n objects hitTest with that one object?
probably not very efficient, but it’ll get the ball rolling.
ok still need help.
Say I was to do a snow flake scene. But if 2 flakes collied they break into 4.
The problem is I dont know which ones will touch, and there could be 100 different flakes. flake1, flake2, flake99.
I duplicate a flake movie giving each its own name.
i = i + 1;
duplicateMovieClip (_root.flake, “flake” + i, i);
now that I could have 50 flakes on the screen with different names, how can I hit test them all.
if (_root.flake n, hitTest( flake n) )
I dont have a clue.
http://www.macromedia.com/devnet/mx/flash/articles/asteroids.html
OK I found this asteroids game.
somewhere in it should be my answer, I think…
did u ever find an answer?
I had a problem with that one making a game that has been on here a couple times before I put it up (beacause I couldn’t get it to work) However, on the end of this post, there is a zip file with a game called Galaxia on it that uses hitTest on duplicated movieClips. Basically the hitTest asks for an array - I don’t do arrays yet, but your answers in that game:
Hope that helps, it’s a little out of my understanding right now.
[edit]Yeldarb, lol that PMS line is messed up, but funny!!
if it’s out of ur understanding, it’s out of mine… ur way better at flash than me… can someone explain it?
come on, i know someone knows how to do this??!!
please help me!!
please, i really need to know how to do this…?
i know one of you flash gurus knows how…
senucular? lostinbeta? kirupa? claudio? someone else?
thanks
ok, guess not… i think i may start a new thread??..
Yeah sorry i didn’t answer you Yeldarb i stopped recieving emails from this thread.
I put that in the to hard basket to come back to later.
:: Copyright KIRUPA 2024 //--