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

expression change value every frame

Explorer ,
Aug 06, 2022 Aug 06, 2022

Copy link to clipboard

Copied

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

Views

97

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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