Posted By
|
Message
|
Benny Lindberg
Registered 08/11/2010
Points 54
|
11th October, 2011 at 19:46:40 -
Hello again! I'm here in need of yet more guidance. I'm making a shooter, and I want the player to be able to shoot while they jump. I have the animation done, so there's no problem there. The problem is that when the original sprite goes invisible and the shooting-sprite goes visible, there is a brief flash of either one of them standing as if on the ground.
I know there was a megaman engine that could do this in a good way, but I can't seem to find it anymore.
n/a
|
Blue66
Registered 24/05/2008
Points 1186
|
11th October, 2011 at 20:16:46 -
I'm sure it has to do with the order of your events. MMF always goes through the events from top to bottom (fastloops excluded). So if the event of changing the animation to the shooting one comes before the event of changing animation to normal, you will first see the normal one for the blink of a second and after that the event of the correct animation will fire because MMF only gets to it at the next run through all events.
Hope that makes sense to you, I suck at explaining but I've tried
www.paulinthenet.de
www.gungirl2.com
|
siven I EAT ROCKS
Registered 03/11/2008
Points 604
|
13th October, 2011 at 02:48:14 -
i may be totally wrong here but it could also something like this...
when i first started making platform shooters i used the platform movement object and i had it so when you would shoot it would change the animation to shooting and fire a bullet, but i kept running into the issue where the animation of shooting would show like the first frame for a split second than go back to the other animation. it was because i had it set up like...
object is standing on ground - change animation sequence to stopped
same things for jumping and falling. i had to change it to this to make it work...
object is standing on ground + animation shooting is playing (negated, so animation is not playing) - change animation to stopped. i also had to make a separate shooting animation for jumping so he didnt change to the standing and shooting animation while in the air, cuz its weird looking when your character has his feet flat like hes standing but is actually flying through the air.
if thats what you did than hope that helps. something else you could do is make a multi object character, that way the animations for the arms are separate from that of the body etc. just an idea
[Game design makes my brain feel like its gonna explode.]
|
|
|