hello I have an object called fruit that moves towards the player using a tween but I can’t get any of the ease options to start slow then and end fast?
example
events
hello I have an object called fruit that moves towards the player using a tween but I can’t get any of the ease options to start slow then and end fast?
example
events
Linear easing is just a constant speed from start to finish. You want one of the InOut easings.
Look at this Easings cheat sheet that visually describes the various types.
thanks for the reference easeInCubic is what I’m after but when I select that easing still starts fast?
Tweens must always be used with some form of trigger once, else they are being restarted wvery frame, which will cause some issues.
(This means If you are using it wirh any kind of for each event, this means you’ll need to come up with some logic to enaure it only occurs once per frame per object, usually with some kind of toggle objwxt variable)
Additionally, you are having it occur over 600me which will be pretty fast as that is still less than one second.
edit got it working had to place as sub event but have a new problem the fruit doesn’t target the player when moving like should I think has to do with trigger once
example
event
Instead of tweening the position, tween an object variable on the fruit from 0 to 1, and use that in lerping from the fruit’s position to the player’s position (Lerp(fruit current position, player current position, fruit variable)
or maybe Lerp(fruit start position, player current position, fruit variable)
).
how do I do this exactly where do I add Lerp() idk the syntax start position, player current position, object variable?
this is what I have
ok that working great now thank you!