susa38ParticipantAugust 31, 2016 at 8:34 am #84768
I use a spritte sheet to make a simple animation.
When the user press a button I have an action and the animation stop.
When the user press the same button I would like that the animation (from spritte sheet replacement) continue on the same position where it stoped.
On the action panel I see play spritte and pause spritte.
With this the animation restart from the initial position to the last (not from the position where it paused)
I do not find a way to make it. So I went to watch the lua created on kwik.
On the lua code I can see where I make a pause spritte on action panel
if layer.susttermo then layer.susttermo:pause() end
and when I make a play spritte on action panel
if layer.susttermo then layer.susttermo:setSequence("termactivo"); layer.susttermo:play() end
Ok then. For the request that I think interesant on kwik action panel there would be a new button (“resume spritte” or “continue sptitte” and the code on lua would be the same that the code to play sprite but without this
the code would be
if layer.susttermo then layer.susttermo:play() end
I do not know if you think it is an interesting new element or if there is other way to make it on kwik or if is it possible to make it on kwik now.
Actually I modify the code manually after create the lua code with kwik,
it’s only a suggestion to improve kwik if you like
You must be logged in to reply to this topic.