? Spanim.. one more time! (Page 1) ● SmileBASIC Source Forums

Sign In

*Usernames are case-sensitive
Forgot my password

Spanim.. one more time!

  • #1 ✎ 6 SheridanThorpe75 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. Posted
  • #2 ✎ 1785 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself 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. Posted Edited by 12Me21
  • #3 ✎ 731 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    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.