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

Text should not refresh on each frame

Community Beginner ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

Hi guys,

i want to make something like a broken or frozen counter where some numbers change randomly.

I did it with an Expression and it works, but it's to fast because the text refreshes on ech frame.

my question is how to slow it down, so it only refreshes every 5th frame?

my script (the fast one)

s=227

r=random(9)

s+r

thanks in advance 

Views

313

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

correct answers 1 Correct answer

LEGEND , Dec 03, 2016 Dec 03, 2016

s=55;

posterizeTime(5)

r=Math.round(random(9));

s+r

Mylenium

Votes

Translate

Translate
LEGEND ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

mSeed=timeToFrames(time)%5;

seedRandom=(mSeed,true);

//rest of your code here

Mylenium

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
Community Beginner ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

Thanks for fast reply. But it doesn't change anything. The numbers still rushes through as before.
lete script looks like this:

mSeed=timeToFrames(time)%5; 

seedRandom=(mSeed,true);

s=55;

r=Math.round(random(9));

s+r

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
LEGEND ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

s=55;

posterizeTime(5)

r=Math.round(random(9));

s+r

Mylenium

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
Community Beginner ,
Dec 03, 2016 Dec 03, 2016

Copy link to clipboard

Copied

LATEST

That's it! Thank you!

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