-
Path finding
I need help with my path finding. How can i make the boundary 1 movie clip and still have the car detect the walls and not the empty white space?
-
Run for your life!
What i do, i dont know if theres a better way is just make a movie clip, and put all of the walls within it, then code on it:
code:
onClipEvent(load){
_global.walls = new Array(this.wall1, this.wall2, etc...);
}
then hitTest the array
-
ok ill try that when i get a chance. Does that code only work in MX?
-
Run for your life!
It should work in 5 also, although i havent tried it..
-
I tried it in flash 5 and it doesnt work or mabey i did it wrong
-
Run for your life!
Alright so wut u should do, is for ur hitTest code:
code:
for(i in _global.walls){
if(this.hitTest(_global.walls[i])){
//hitTest code
}
}
-
Senior Member
I dont think Flash 5 has anything like "_global".
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
|