The Daily Click ::. Forums ::. Klik Coding Help ::. Animation going off.....?
 

Post Reply  Post Oekaki 
 

Posted By Message

Devernath



Registered
  04/12/2004
Points
  54

VIP Member
20th July, 2009 at 05:04:25 -

Hey, I have a problem.

My character has two objects, which change visibility based on which weapon hes using. One is his normal for using handguns, and one is for holding rifles. The gun holding objects holds the rifle in all his frames.

I make the holding guns object always set to the original objects position. I also have it always change its animation sequence to that of the original sprite. The holding guns sprite is static, but has the same speed and frames as the original one.

The holding guns sprite doesnt have the guns drawn in, as those are seperate objects. So without drawing the rifles, It looks like he's holding imaginary rifles.

But have actual rifle sprites, which have the same hot spots and frames the holding guns sprite, but i erased the character from them. So, they look like floating guns with spaces for where the hands go.

I set the rifles position and animation sequence to always that of the holding guns sprite.

Generally, it looks pretty good, but randomly, if I try to test it out for alot, The rifle sprite starts at a different time than the holding guns sprite.

So, the rifle doesnt animate at the same time as the holding guns sprite.

Hope I didn't sound too confusing. So, how can I make the rifle always set to the holding guns sprite, never ever bugging up?

Events in order
Original objects animation.
Holding guns copies original objects animation.
Rifles copy holding guns animation.

Thanks

EDIT: Also, usually, the bug happens when I try to shoot alot. And just trying to stop walking and stopping again doesnt fix it. Neither does switching to another rifle. All the rifles I drew (like 5 weapons) are all in time with each other, which are all offtime with the holding guns animation.


Edited by Devernath

 
n/a

GamesterXIII



Registered
  04/12/2008
Points
  1110

I am an April Fool
20th July, 2009 at 05:09:02 -

I'm assuming you're using tgf.

Try doing this :

Any time you change an animation
>restore animation sequence
>change animation sequence to whatever animation.

or > animation has finished
> Restore animation sequence (this will restore it to stopped).

Animations often bugged up like this in older click products. Haven't tested it in mmf2 (i always do it as a precaution)but I think it may be fixed.

Edited by GamesterXIII

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
20th July, 2009 at 05:18:58 -

If you're using a custom movement, and you have an always event settings the animations, there may be a slight delay between movement and animation. You could try positioning the always event right below the movement events, but it may be best to also change the holding-gun and rifle animations manually.

Eg, rather than doing:

Pressed fire 2
>>Shoot

Always
>>Set rifle animation and direction to character animation and direction

Do this:

Pressed fire 2
>>Shoot
+Set rifle animation to shoot and direction to character direction.

Always
>>Set rifle animation and direction to character animation and direction (for safety)

It might also be a good idea to set the Rifle animation to the original character's animation rather than the gun-holding animation, so that it's not a delayed chain. If you're not using a custom movement, you may have trouble.

Edited by OMC

 

  		
  		

Devernath



Registered
  04/12/2004
Points
  54

VIP Member
20th July, 2009 at 05:19:36 -

right, but the problem is not that the rifles dont stop animating, is that theyre always off.

Like, the rifles would "walk" and "shoot" when the guy is, but it starts a little late...

WAIT A MINUTE, OF COURSE!

Since the holding guns is copying the original, i should have the rifles copy the original too! Instead of copying the holding guns.

Since the holding guns is always copying the original, it should not mess up if its copying the original too!

....

Just tried this, hasnt messed up yet.

I guess the problem is that it was a microsecond off, since the time it took to copy the holding guns made it look a little off.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
20th July, 2009 at 05:20:34 -

Glad you figured it out!

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click