Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
I'm new to construct 2
How do I scale objects over time. There is a behavior for the in Classic I've seen a plugin for it. Will there be a scale behavior plugin for C2
Develop games in your browser. Powerful, performant & highly capable.
You could look up the lerp() function.
Or simply - every tick, object.setsize - object.width +1, object .height +. 1
How exactly do you want to scale the object? If you want an in and out effect, you could use the Sine behavior, for example.
Well I want to scale one object compared to another object by percentage
Example- if objA scaled to 50% then scale objB 40%
Just trying to find a quick way to scale a lot of objects different at Percentages at the same time.
Create an instance variable for objA and objB called 'scale' with default 1.0
System: Every tick
-> objB: set scale to objA.scale*your_conversion_formula
-> objA: set size to self.ImageWidth*self.scale,self.ImageHeight*self.scale
-> objB: set size to self.ImageWidth*self.scale,self.ImageHeight*self.scale
should work fine
Thanks everyone for the info I will give them a try