Home / Topic / Possibility of spritte sheets play from last position it paused

Possibility of spritte sheets play from last position it paused

Home Kwiksher Forums Kwik User Questions Possibility of spritte sheets play from last position it paused

Viewing 1 post (of 1 total)
  • susa38
    Participant
    #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
    layer.susttermo:setSequence("termactivo");

    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

    • This topic was modified 2 years, 11 months ago by  susa38.
    • This topic was modified 2 years, 11 months ago by  susa38.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising