Ah! I see, thanx.
Too bad there isn’t a better way to do this…
Thanx
:hugegrin:
im know there is a better way to do it, im just not going to write the code for you.
Well, could you outline the concept so I could try and make the code?
:beard:
well basically the problem is that you have only object_ovr variable, you need to find a way either have multiple ovr variables, or to rethink your whole approach. i cant really spare the time to go to into more detaisl than that
[AS]function baddy_touch(thing){
if(cursor.hitTest(thing)==true){
thing.object_ovr=true;
trace("hit "+thing)
}
if(cursor.hitTest(thing)==false){
thing.object_ovr=false;
}
}
onEnterFrame=function(){
baddy_touch(baddy1);
baddy_touch(baddy2);
}[/AS]
Thanx for all your help, it’s been good.
You Australians are so nice.
by the way if u r going to have lots of baddies then ull need to do something like this
[AS]var baddyNumber=2
function baddy_touch(){
if(cursor.hitTest(this)==true){
this.object_ovr=true;
trace("hit "+this)
}
if(cursor.hitTest(thing)==false){
this.object_ovr=false;
}
}
for(i=1;i<=baddyNumber;i++){
this[“baddy”+i].onEnterFrame=baddy_touch
}[/AS]