OK I’ve been trying to work this out for a while and I think I’m going to have to ask for help.
function ghostGoUpDown(currentGhost) {
//do stuff
}
benet.onEnterFrame = function() {
//do stuff
if(maze_mc.hitTest(this._x-16,this._y,true)) {
ghostGoUpDown(benet);
//do stuff
}
if(maze_mc.hitTest(this._x+16,this._y,true)) {
ghostGoUpDown(benet);
//do stuff
}
}
How can I change it so that the ghostGoUpDown is only run once each frame the hit test is true? I’m pretty new to as2, sorry if it’s stupid question but at least it’ll be easy to answer! I can post full code if needed.
TIA
McCoy