Hi. Having a little problem and hoping for some ideas on how to solve it.
Remember Megaman on the NES? When you fired your weapons while running Megaman would briefly raise his arm cannon without interrupting his running animation or needing to stop. How can I program something similar?
I've already got a four frame animation for running with my hero swinging his arms. And I've made a very similar four frame animation for firing a weapon while running, where one arm is raised to attack while the other still swings. I just don't know how to cut smoothly from one to the other and back.
I've tried things like "If button two is pressed, then change animation sequence," and then making normal animations all dependent on button 2 NOT being pressed, but this doesn't preserved the frame value so the animation starts over and looks jerky.
I've also tried creating an alterable value to record the old frame value and restore it to the newly activated animation. This DOES preserved the correct frame--whichever frame I hit button two on is the frame that loads in the firing animation--but then the animation stops and just stays on that one frame as I glide across the floor.
I'm a little bit confused about what to try next, so any ideas or perspective you could offer would be greatly appreciated!