You can use either a number (0) or string ("XY") for the animation type; the result is the same.
The time value is the amount of time after the key frame.
For example, if it's 6, the current keyframe will happen immediately, and the next one will start after 6 frames.
If it's -6, the sprite will animate smoothly towards the keyframe, and it will reach it in 6 frames, and then the next keyframe happens.
Spanim.. one more time!
SheridanThorpe75Created:
Ok...so I have read all the posts I could on this site and reexamined the instruction manual and so forth and I still can't wrap my head around the it completely. So here goes...
I understand the: sprite ID and the loop and sort of the time and frame thing...
The codes for the target animation are confusing and why does the time parameter for the keyframe matters? Does any negative value work to make it continous? Im just confused as hell. All the explanations just basically regurgitate what the instructions in the edit screen say which isn't an explanation. The target animation parameter for instance says 0 or "XY"..well is it 0 or "XY"? And why would you want to change the XY coordinates that way anyways? Like I said NOT EXPLAINED.
And why would you want to change the XY coordinates that way anyways?Spanim for X,Y coordinates is really usefull for things like tower defense games, where you can guide the enemy along the path easily and not have to worry about a ton of weird stuff like knowing where the enemy is on the path. It's also really good for smooth animations that don't need a ton of fancy X,Y spofs. It's really convenient for a ton of things, I would even use it to be lazy and not keep track of the sprites location using variables.