Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Composed Tweens - Gideros Forum

Composed Tweens

Hi. I'm playing with GTween and for simple effects everything is running fine.

But what's the correct way to compose 2 or more different tweens with GTween?

I failed to see it.

Thanks.
Tagged:

Comments

  • olegoleg Member
    I do it in the form of functions
    function speed_move(sprite,x2,y2,speed)
            speed=speed/1000*60  --60fps
            x1, y1 = sprite:getPosition()
     
            sprite.move = MovieClip.new{
                            {1, speed, sprite, {x = {x1, x2, "linear"},y = {y1, y2, "linear"}}}  -- відтворити з 1 до 100 кадру з рухом по осі  Х від 0 до 200
                    }
            sprite.move:gotoAndPlay(1)
    end

    Think gtween is similar to MovieClip
    my games:
    https://play.google.com/store/apps/developer?id=razorback456
    мій блог по гідерос https://simartinfo.blogspot.com
    Слава Україні!
  • I'll give it a try.

    Thanks.
Sign In or Register to comment.