working between frames

   480   0   0
User Avatar
Member
8 posts
Joined: May 2018
Offline
Hi there!!

I want to work between frames, that means I want to do some calculations in t=1/frame 1 that will affect values of t=2/ frame 2.
More presicely I am importing csv files that show happiness numbers per 50 years. For t = 1, happiness = x. What I want is to say that when t = 2 and happiness = y, substract from happiness 10% of its value, i.e. happiness = y - y*y%. In the end I want to apply this policy to all the coming frames;

if (factor < 5%)
{
@hapiness -= hapiness*10%;
}

How can I do that?

Attachments:
Στιγμιότυπο 2018-06-17, 12.37.17 πμ.png (90.4 KB)

  • Quick Links