Skip to main content
Inspiring
August 7, 2022
Question

expression change value every frame

  • August 7, 2022
  • 1 reply
  • 198 views

hi everyone

is there a way to update a value every single frame?

e.g.  to run this expression every frame "y position = value + 5", so in frame one itl be 5, in frame 2 itl be 10 and so on...

thx very much! 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
August 7, 2022

Expressions have no memory so you can't increment a value calculated on the previous frame, but you could do something similar by basing your calculation on the current frame number. So an expression for y position might look like this:

value + timeToFrames(time)*5