Okay, here’s the deal…
I worked on Kirupa’s tut on how to make the action scripted movement, and it working well, until I wanted it to reappear and repeat…
I’m working on a Stick Shooting game (the basic first draft can be seen at http://www.stickslaughter.com/stickshooter.html) and have been attempting to make a stick, walk from one side of the stage to the other, and repeat. I can do that easily, but then i run into a problem…
When you shoot the stick, it goes into an animation where it dies and fades to 0 alpha. So when the stick reappears, he’s invisible, therefore making it pointless for him to repeat. Here’s the script I have on the stick right now:
onClipEvent (enterFrame) {
speed = 5;
this._x += speed;
if (this._x>=500) {
this._x = 20;
tellTarget (_root.target) {
gotoAndPlay(1)
}
}
}
So he moves until 500 on the stage, then repeats, and the tellTarget attempts to make the stick (instance name: target) go back to frame 1, where’s he walking visibly.
Any suggestions?
Thanks in advance…
KoRRupt