sprite tweening and responsive design?

0 favourites
  • 5 posts
From the Asset Store
Calculate parabolic trajectories and tween objects over them.
  • Hey there!

    If i want to anchor a sprite for excample in an edge of the layer, there is no possability to tween them (for excample with tweenLite).

    I tried to deactivate the anchor behaviour and tween the sprite after i activate the anchor behaviour again but i get weird offsets...

    I need the anchor behaviour because i need a responsive design - on the other hand i need to tween the sprites at the beginning of an layout...

    Has someone an idea how to fix this problem or a workaround?

    Thank you very much!

  • Someone?

  • You shouldn't need to use anchor for any responsive design... you can set the X/Y coordinates at runtime for every object in your layout.

    I made an example project with a fully responsive layout that resets it's scale to the resolution/window size of the browser, for any device.

    The example is HERE - maybe it will be helpful to what you're trying to do

    ~Sol

  • SoldjahBoy

    Thank you very much for your answer! And for your Capx - If i make this with "every thick" event - does the project has a higher performance cost, than with anchor?

    Or could i use this for any gui and ingame elements in my game without losing performance?

    Thank you very much for your answer!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The performance impact should be minimal but it will depend also on how many objects you have on the layout as well as complex movement of said objects. I have used this method for a few projects so far with zero noticable impact on performance.

    ~Sol

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)