The Daily Click ::. Forums ::. Klik Coding Help ::. Seperate Sprites for Body Parts - Animation Problem
 


 

Posted By Message
This thread has been locked by an administrator

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
1st May, 2005 at 16:53:31 -

What I'm trying to do is have the main character and the main characters weapons as seperate sprites. Simple technique - the benefits are obvious and if you don't know what I'm talking about you probably can't think up a solution anyways.

So heres my problem. When the main character changes animations, the different weapons must change their animations to match that of the main character right? Well, this sometimes works but other times the animations are out of sync. In other words frame 1 of main character would play while fram 2 of weapon would be playing, frame 2 of main character playing, frame 3 of weapon playing etc.

I tried two versions of code. The first goes something like this:
Press SPACE
- Main character change animation to attack
- Weapon change animation to attack

The 2nd version uses fast loops:
Press SPACE
- Begin loop "anim attack"
On Loop "Anim attack"
- Main character change animation to attack
- Weapon change animation to attack

Both versions have frequent animation synchronization problems; and although you'd think the 2nd version would work better, its actually worse :S

Help appreciated.

*edit*
I just realized i posted this in the wrong forums

Image Edited by the Author.

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
1st May, 2005 at 17:33:26 -

Moved.

Have you tried

+Press Space
-Change to attack animations

+Main Character Animation "Attack" Playing
+Weapon Animation Attack Playing
-Set animation frame of Weapon to CurrentFrame(Character)

Not the exact syntax but hopefully you see my point.

 
www.thenatflap.co.uk

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
1st May, 2005 at 20:00:23 -

double post, locking this one.

 
Craps, I'm an old man!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
1st May, 2005 at 20:00:29 -

Administrative Message: This topic has been locked.

 
Craps, I'm an old man!
This thread has been locked by an administrator



 



Advertisement

Worth A Click