Platformer Animations for Shooting

Hello,

I am a videogame design teacher who has a question about programming animations in a spiderman platforming style game.

my student is attempting to have spiderman shoot when the C key is pressed with a corresponding animation, even when spiderman is moving left or right. However, the programming is jumbled when those two events occur so when he moves or does not hold don the C key, the animation stops and reverts back to walking animations.

Essentially, I need the shooting animation to finish regardless of whether he keeps moving or lets go of the C key or both.

Thanks in advance for any help you can offer, if you need clarification on what the heck Im talking about feel free to ask.

Comments

  • Cutscene EntertainmentCutscene Entertainment Member, PRO Posts: 138
    I suggest you try setting a 'real' attribute for shooting, called "shooting" or "slinging". When the C key is pressed, this attribute is turned to 1. While this attribute is active, the animation is played. Then when the animation ends, the attribute changes to 0. Set all other animations to NOT happen while this attribute is active.
    I hope I helped. Ask again if you don't understand what Im trying to say.
  • Ya the real number attributes worked, looks great!
Sign In or Register to comment.