How do I re scale an object over time

0 favourites
  • 3 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • i want an object in scene to reduce its scale every second. i used: every 1 second / set scale to "vida.height-5" but what i get as a result is a brief screenshot of the object at full scale (i think at the actual size of the object which is 400pixels x 400 pixels ) and then disappears, and repeats every 1 second until it completly stop after like 6 seconds. it's like it detects the virgin object and pastes it on screen.

    help

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • scaling sprites seams to act relative not absolute.

    To scale a sprite smooth declare a object variable e.g. myscale (initial set to 1) and reduce this every second by e.g. 0.1

    Save the initial width/height of the/each sprite in an object variable at startup.

    The each second set the sprites width to sprite.initial width * myscale and the the sprites height to sprite.initial height * myscale

    something like this http://www.gameus.de/c2/downscale.capx

  • Instead of scale I would recommend using the size of the object.

    You can reduce height and width using Size of object each second or every tick.

    Scale is primarily used when you are also scaling the layout so objects appear the correct scale.

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