Help with Lerping

Hello everyone!

In this code I have input the same Lerp value etc on both of my objects (left/right), except for the x value, I wanted them to be a little far away from each other, but somehow when I preview, the right object lerps far below my left object. Can someone help me? Please :smiling_face_with_tear:

for visualization:

This happens my objects for my code in Metaphase Up Event

(Violet is their initial position)

While ALL my objects coded in the Metaphase Down Event, goes down, outside the oval.

I want them to lerp in this position:

Here is the video:

I think you need to set the counter variable to 0 in the event before each for each object. It’s currently going from 0 to say 3 then 4 to 7.

1 Like

I did this and it it’s still the same :sob:


The action not the condition . You need to set the counter to 0 each time

1 Like

ohhhh right right sorry for that. I works fine now.

I did the same for my other event but it does not work. May I ask for your idea why my code below not work the same?


I have different variable here (Counter2)

The last event is using counter in the lerp() instead of counter2,if it’s supposed to be counter then you probably need to set counter to 0 as well plus add to it.

Whichever variable it’s supposed to be,it needs matching actions.

Set to 0
Lerp
+1

I think I did set counter2 = 0 and counter2 is in the lerp() in my events or my eyes are deceiving me. May I ask which specific event needs work or has counter in it instead of counter2? :sob:

EDIT: Sorry, I got it hahahaha Thank youuuu

1 Like