The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsI'm making a gun game and i have the gun shooting the bullet prefectly, but i want it when the bullet collides with a box or whatever the box will go to its next frame... but i also have to have the
if(this.hitTest(_root.box))
{
_root.nextFrame();
}
Oh yeah, this is for AS2 and the bullet's instance is shot
If you are angry... Don't talk to me! :D
Shit sorry the code i need is
if(this.hitTest(_root.box))
{
this.removeMovieClip();
}
The first code i gave sadly wont work and is the problem.
If you are angry... Don't talk to me! :D
Actually the first code isn't even what i have as a problem LOL
If you are angry... Don't talk to me! :D
i too am having this problem
your best try SO FAR
is:
onClipEvent(enterframe){
if(my_mc.hitTest(_root._xmouse, _root._ymouse))
{
_root.gotoAndStop(your frame)
}
}
forget the mouse assignment lol.
The thing is i wanted the collision to make a movie clip go to it's next frame, but whenever i set up the code
if(this.hitTest(_root.mymovieclip))
{
_root.mymovieclip.nextFrame();
}
It doesn't do as i wish
If you are angry... Don't talk to me! :D
At 10/5/09 05:50 PM, Davidrfc wrote:
if(this.hitTest(_root.mymovieclip))
{
_root.mymovieclip.nextFrame();
}
Try:
if(_root.mymovieclip.hitTest(_x,_y,true)
{
_root.mymovieclip.nextFrame();
}