nimrod_king
03-12-2008, 03:10 PM
Im making a game, you driving a car, if either of the 2 police cars hit you, you get busted.
----------------------
function onEnterFrame ():Void {
collide = _root.police1.hitTest(_root.car1)
collide = _root.police2.hitTest(_root.car1);
if (police1._x < 500)
if (police2._x < 500)
{
if (collide == true)
{
setProperty ( police1, _visible, true );
setProperty ( police2, _visible, true );
setProperty ( car1, _visible, false );
gotoAndPlay(5);
}
}
}
--------------------
only police1 works
anyone help?
----------------------
function onEnterFrame ():Void {
collide = _root.police1.hitTest(_root.car1)
collide = _root.police2.hitTest(_root.car1);
if (police1._x < 500)
if (police2._x < 500)
{
if (collide == true)
{
setProperty ( police1, _visible, true );
setProperty ( police2, _visible, true );
setProperty ( car1, _visible, false );
gotoAndPlay(5);
}
}
}
--------------------
only police1 works
anyone help?