Chain/Whip weapon and animation
![TheMarque](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hey guys! This is one of the last things I had to to do finish coding my platformer.
I am working on the weapons of my character only I am having problems getting him to use his weapon, which is a whip. The standing graphic is 70px by 43 px. The whipping animation/image is 70px by 93px. So it's much wider. Putting the animation as a rule within the "player" actor cuts out the whip too much so I have created another actor that is the whip animation that shoots out an invisible "whip block". This actor spawns when "shift" is down and shoots out the invisible block for .2 seconds before it is destroyed.
Now my problem is this, when I spawn the new actor on top of the old actor, the "player" remains visible. I have tried change image and tried changing the "visible" attribute to "false" but it just doesn't work. Any clue why or any ideas on what to do?
Also, is what I described the best way to go about doing this "whipping" animation/weapon?
Thanks!
I am working on the weapons of my character only I am having problems getting him to use his weapon, which is a whip. The standing graphic is 70px by 43 px. The whipping animation/image is 70px by 93px. So it's much wider. Putting the animation as a rule within the "player" actor cuts out the whip too much so I have created another actor that is the whip animation that shoots out an invisible "whip block". This actor spawns when "shift" is down and shoots out the invisible block for .2 seconds before it is destroyed.
Now my problem is this, when I spawn the new actor on top of the old actor, the "player" remains visible. I have tried change image and tried changing the "visible" attribute to "false" but it just doesn't work. Any clue why or any ideas on what to do?
Also, is what I described the best way to go about doing this "whipping" animation/weapon?
Thanks!
Comments
___________________________________________________________________________________
Project Help from Tenrdrmer Click Here
GS BubbleBall Template HERE!!
Stacks Level Selection Template HERE!!
Expanding Option Menu Template HERE!!
Tenrdrmer's Menu # 3 HERE!!
Menu #4 - Level Banners HERE!!
AppSolute Entertainment on Facebook
AppSolute Entertainment on iTunes
I would not use spawn/destroy if you're intending on using that function a lot in a given scene. I would instead keep the actor you're spawning off screen somewhere instead. When you need it, simply move it to the spot you need it, and the back off screen when you don't.
Any other ideas or suggestions on how to do what I am suggesting? A whipping animation as a weapon. What I have going on right now is pressing shift spawns an invisible "block" whip-sized actor that shoots at the enemy. It also resizes the player graphic to 70 x93 and changes image to the animation. My strange problem, however, is that it does not revert back to what was there previously. And the timer doesn't seem to work in this. Maybe I'm doing something wrong? Any detailed suggestions would be wonderful, this is all I have left to do before I design levels!
Thanks!
You probably want to use the power of 2 rule so they stay nice and sharp and don't waste resources:
i.e. 70x44 and 70x94
.... something like that anyway, right?
Mike
But do you or anybody else have any suggestions for my real problem?