Menu

switch to sprite

2004-11-15
2012-12-25
  • Nobody/Anonymous

    am i doing something wrong? or is this just the way it has to be? player has a weapon he swings like bat, i used special functions and hidden inventorys to do this, but when ever i press the attack button it always switches to the left state of the sprite even with retain old state check? i can however hold the right arrow on the keyboard and and press the attack button and it works fine, its just when i intial press it it goes left...

     
    • Ed

      Ed - 2004-11-16

      I believe there has to be the same number of frames of animation in the state you are switching from--left / right moving--and switching to--left / right attacking, respectively--for it to work.

       
    • Nobody/Anonymous

      yep you were right thank you

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.