Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

expression change value every frame

Explorer ,
Aug 06, 2022 Aug 06, 2022

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! 

TOPICS
Audio , Crash , Dynamic link , Error or problem , Expressions , FAQ , Freeze or hang , How to , Import and export , Performance , Preview , Scripting , User interface or workspaces
148
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 06, 2022 Aug 06, 2022
LATEST

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines