Change animation speed
Moderator: Stef
Change animation speed
How would i initialize each animation to its own speed? Right now using the "SPRITE jason_sprite "jason.png" 2 3 -1 10" applies to all animations.
Thanks
Thanks
Re: Change animation speed
You need to set general speed in rescomp.res as zero, and use setAnimation / setFrame functions on SpriteEngine to animate the sprite on your own.
Last edited by nolddor on Fri Oct 02, 2015 12:56 pm, edited 1 time in total.
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Change animation speed
rescomp is definitely not flexible enough when it comes to the SPRITE resource... you can modify generated structures afterward but that is dangerous as rescomp may overwrite them as soon you modify the .res file.
As suggested nolddor, the best is to let the "timer" parameter set to -1 in the SPRITE resource definition then handle it on your own.
In future i really want to have a real and good Sprite animation builder tool which will let you to tune the different parameters in depth...
As suggested nolddor, the best is to let the "timer" parameter set to -1 in the SPRITE resource definition then handle it on your own.
In future i really want to have a real and good Sprite animation builder tool which will let you to tune the different parameters in depth...
Re: Change animation speed
Is there any difference between setting speed to -1 or zero?
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Change animation speed
Actually i was wrong and you were correct :p
time parameter has to be set to 0 to avoid auto animation, -1 is not a valid value :p
time parameter has to be set to 0 to avoid auto animation, -1 is not a valid value :p
Re: Change animation speed
Ah okay. Yeah, now i got it working.nolddor wrote:You need to set general speed in rescomp.res as zero, and use setAnimation / setFrame functions on SpriteEngine to animate the sprite on your own.
Thanks! 8D
Re: Change animation speed
Oh, you made SGDK? Cool. Pressure is on to make a cool game. 8D xDStef wrote:rescomp is definitely not flexible enough when it comes to the SPRITE resource... you can modify generated structures afterward but that is dangerous as rescomp may overwrite them as soon you modify the .res file.
As suggested nolddor, the best is to let the "timer" parameter set to -1 in the SPRITE resource definition then handle it on your own.
In future i really want to have a real and good Sprite animation builder tool which will let you to tune the different parameters in depth...
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Change animation speed
Haha, definitely you don't need to pressure yourself, it's already a pleasure to see new people using it =)