Forum rules - please read before posting.

Confused about how time curve works for Engine: Change Timescale

I'm not sure exactly sure how to use the time curve for the Engine: Change Timescale action. My assumption would be the timescale changes smoothly along the Y axis (slowing or speeding up over the "hills", like a sin or cos wave), over the period of time along the X axis. However, when testing it, the reverse seems to be true - Y is period of time and X is timescale (and even then I'm not exactly sure).

Can you give a quick rundown on how this works? (I assume it's like the other curves in Unity; maybe I could have figured it out by doing more research, apologies if that's the case.)

As an example, if I wanted the timescale to go from 1 to 0.5 over 3 seconds (I guess the 3 seconds would actually be longer as the timescale goes down?), how would I go about that? Thanks.

screenshot probably unnecessary but I figured I'd throw one in

Comments

  • Whoops, there's a bug - thanks for the report!

    In PlayerInput.cs, replace the line:

    SetTimeScale (timeCurve [timeCurve.length -1].time);
    

    with:

    SetTimeScale (timeCurve [timeCurve.length -1].value);
    

    Then, the curve in your example would have a starting point of (0, 1) and an end of (3, 0.5).

  • Ah, haha, thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.