(SOLVED) How do I make a tween tween the value of an object variable

Hello, i’m trying to make a modular falling platform system, where I can change 1 variable and it will change how far it falls, how fast, etc. I can’t seem to figure out how I can make the Y position tween the value of the variable. Any help would be appreciated!

(screenshot of my code, sorry if you are viewing this at night)

Why doesn’t the target tween specify a position?

1 Like

the position is meant to be the value of the variable, though i couldnt figure it out so i left it blank

What goes wrong though? The twean does nothing?

1 Like

im trying to make the tween tween the value of the variable, so say the variable value was 100, it would move 100 pixels on the y axis

Yes, but what goes wrong?

1 Like

nothing goes wrong, i just dont know what expression id need to put

fallingPlatform.Y() + 100

1 Like

sorry i should have clarified, what expression id need to put to make the tween y be the value of the variable

For starters there is option to tween variable

And to answer your question you just type there name of your variable
If its object variable it would be ObjectName.VariableName
If its scene or global variable you just put there VariableName

You 1st need to declare your variable

1 Like

thank you so much! that solves my problem!

1 Like