all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Can I have some help? Plaese.



Can I have some help? Plaese. Devistator
12/19/2004 6:02:36 PM
flash actionscript: Hi, Surprisingly enough i have a problem. Right, when the movie clip 'bullets'
hits the movie clip 'wall' I want the Movie clip 'hole' to appear were the
movie clip 'bullets' just was. How do I go about this? Any tutorials / Code
will be greatly appreciated. Thanks for your time.
Re: Can I have some help? Plaese. kglad
12/19/2004 9:57:19 PM
in a continual loop use:

if(bullets.hitTest(wall)){
hole._x=bullets._x;
hole._y=bullets._y;
bullets.unloadMovie(); // or otherwise remove bullets
Re: Can I have some help? Plaese. Devistator
12/20/2004 6:10:10 PM
Ok that works when the movie clip is placed over it not moving but when I added
the code: onClipEvent (load) { speed = 5; } onClipEvent (enterFrame) {
this._x += speed; } It stopped working why and what do I do? Thanks.
Re: Can I have some help? Plaese. kglad
12/21/2004 2:16:06 AM
nothing in your code will stop the code i gave from working. however, the code
i gave needs to be in a continual loop. for example:

onClipEvent (load) {
speed = 5;
}
onClipEvent (enterFrame) {
this._x += speed;
if(this.hitTest(wall)){
hole._x=this._x;
hole._y=this._y;
// remove bullets
}

}
Re: Can I have some help? Plaese. Devistator
12/21/2004 4:34:26 PM
It's stiil not working. So sorry to waste your time but could you send me it via e-mail to: hughneale@hotmail.com?

Re: Can I have some help? Plaese. kglad
12/22/2004 6:13:40 AM
Re: Can I have some help? Plaese. Devistator
12/22/2004 4:04:54 PM
Re: Can I have some help? Plaese. kglad
12/23/2004 2:19:51 AM
AddThis Social Bookmark Button