HELP HOW TO MAKE A SPRITE SWING A SWORD OR A WEAPON?
Posts
Pages:
1
Something like this > http://www.youtube.com/watch?v=-2eFrGmn_GA i'm trying to add weapon swinging in my game but i have no clue how or even what its called. I thought it was called "animation" and had something to with it but i'm guessing that's not the case and basically animations are how a enemy would react to the attack or how the player reacts. I'm trying to make the player swing a weapon when the attack key is pressed how do i do that? I making my game on blizz abs how would i do this? With variables or switches? Common events? Something with the script? How!? I'm trying to join the chaos project forums and ask them but they're web site is not letting me sign up trying to make my game as realistic as possible.
You could try three ways:
- A common event that checks when the 'attack' button is pressed and replaces the initial walking sprite with an 'attacking' sprite instead. It's as simple as check for attack button, 'Move Event' to change to attack sprite, 'Move event' to change back to walk sprite.
- A common event that checks when the attack button is pressed and overlays a picture or battle animation with the hero's normal sprite. Of course, you do have to take into account that the hero's normal sprite will show underneath unless you make sure to change it to an empty sprite sheet before the attack, then show battle animation/picture, and change the hero sprite back to normal.
- Use a script. Not sure what program you're using, but you could use a script if it's one of the latter ones. There should be some information somewhere about how to use it well.
- A common event that checks when the 'attack' button is pressed and replaces the initial walking sprite with an 'attacking' sprite instead. It's as simple as check for attack button, 'Move Event' to change to attack sprite, 'Move event' to change back to walk sprite.
- A common event that checks when the attack button is pressed and overlays a picture or battle animation with the hero's normal sprite. Of course, you do have to take into account that the hero's normal sprite will show underneath unless you make sure to change it to an empty sprite sheet before the attack, then show battle animation/picture, and change the hero sprite back to normal.
- Use a script. Not sure what program you're using, but you could use a script if it's one of the latter ones. There should be some information somewhere about how to use it well.
Pages:
1















