I want to use *dt but its not working, Im looking for
Mouse wheel scroll Up - objects scale increase smoothly
Mouse wheel scroll Down - objects scale decrease smoothly
can anyone help with this
anyone
Try this:
add two instance variables: targetScale=1 and currentScale=1 to the object.
On Mouse wheel Up: Add 0.1 to TargetScale On Mouse wheel Down: Subtract 0.1 from TargetScale On every tick: Object set currentScale to lerp(self.currentScale, self.targetScale, dt*8) Object set scale to currentScale [/code:2hb5lnnk]
Develop games in your browser. Powerful, performant & highly capable.
Yes, Tyvm!