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
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.
Develop games in your browser. Powerful, performant & highly capable.
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