|
-
Originally Posted by ConnELITE
and i kno i could do it by having external .swfs but id rather do it all in the same sfw
I was not thinking about swf's but of movie and your right you would get multiple swf's.
Originally Posted by ConnELITE
also wat are you saying with that code, i dont get it.
What I was trying to say is..
That if you put all your elements into an array (in my example I used 3 elements element("1"), element("2"),element("3") and put them into an array called elements).
To check for collisions is easier since you just have to loop through the array for(i=0;i<elements.length;i++).
Then do something if your element (in my example I used element test) collides with anything in the array
[I]if (elements.collideRect(element("test"))) {
// do something
}
If you do collision checking this way you could make an ANYTHING function out of it so that any element could be checked against all the other elements or clones in the array.
I hope this helps.
Last edited by ppedz; 11-14-2005 at 05:25 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|