Dynamic Resizing of UI elements by canvas dimen.

0 favourites
  • 3 posts
From the Asset Store
Pixel Destruction like in "Worms" (Drawing Canvas based)
  • i know there's in JS the ability of dynamic sizing of UI elements based on the canvas dimensions of the mobile phone like 90% of screen width for a button.

    I like to know if there's something comparable in C2?? or a plugin to provide that ability?

  • You can check for the height and width of the display and layout.

    scirra.com/manual/126/system-expressions (sorry, I'm not aloud to post full URLs)

    These values change when setting your project to fullscreen.

    Set the width, height and position of your objects to relative values instead of fixed values and it should work.

    (I've done this with size only, but it logically should also work with position)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There also seems to be built in support of some kind for this:


    I think I would still use the manual sizing and positioning to make everything responsive to many screensizes and retain full control over values.

    Please correct me if I'm mistaking on anything dear forum members.

    I've only been working with C2 for a couple of weeks.

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