The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsSup guys! i need help right now!
I have a Script Here:
onClipEvent (mouseDown) {
if (shootable == true)
{
theX = this._x;
theY = this._y;
_root["bullet" + bulletsFired - 1].removeMovieClip();
_root.attachMovie("bullet","bullet" + bulletsFired,_root.getNextHighestDepth(),{_x:this._x, _y:this._y});
_root["bullet" + bulletsFired].bulletSpeed = 30;
_root["bullet" + bulletsFired].xmov = Math.cos((Math.atan2(_root._ymouse - _y, _root._xmouse - _x)) * (180 / Math.PI) * (Math.PI / 180));
_root["bullet" + bulletsFired].ymov = Math.sin((Math.atan2(_root._ymouse - _y, _root._xmouse - _x)) * (180 / Math.PI) * (Math.PI / 180));
_root["bullet" + bulletsFired].xmov *= _root["bullet" + bulletsFired].bulletSpeed;
_root["bullet" + bulletsFired].ymov *= _root["bullet" + bulletsFired].bulletSpeed;
bulletAngle = ((_root.player._rotation - 90) * Math.PI / 180);
_root["bullet" + bulletsFired]._rotation = bulletAngle;
_root["bullet" + bulletsFired].onEnterFrame = function()
{
this._x += this.xmov;
this._y += this.ymov;
if(_root["bullet" + bulletsFired].hitTest(_root.zombie)){
unloadMovie(_root["bullet" + bulletsFired]);
}
};
bulletsFired++;
shootable == false;
Shootable_Timer = setInterval(shooot, 10000);
}
function shooot()
{
shootable == true;
}
}
How do i make so it can detect collision?
13 Years old. I like Programming and making musics!
This needs to be posted to the Flash Forum..
At least not a muffin.