# [BEHAVIOR] Timescale ratio

### » Sun Jul 30, 2017 10:57 am

Hey all, I just completed my very first behavior.
It's a pretty simple one but also kinda useful in some cases.

What it does is that it sets an object's timescale to follow the global timescale with a ratio and with a default timescale. Kinda like parallax.
Let's see a few cases to illustrate what I mean (DTS = Default timescale, GTS = Global Timescale) :

1. DTS = 1 and ratio = 0 . The object will always be at a timescale of 1
2. DTS = 1 and ratio = 0.5 . The object will follow the variation of the global timescale by half ( GTS = 1, Timescale = 1. GTS = 2, Timescale = 1.5. GTS = 0, Timescale = 0.5)
3. DTS = 1 and ratio = 1 . The object will be as usual: Following the global timescale
4. DTS = 0.5 and ratio = 0.5 . ( GTS = 1, Timescale = 0.5. GTS = 2, Timescale = 1. GTS = 0, Timescale = 0)
Etc, I could do a lot more of these, but I think you get the point.

How can it be useful? Well the most important one I can think of is Pause menus:

The default values of the behavior are set for that use. So it's a plug n play in that case. But I'm pretty sure anyone playing a lot with timescale can find more uses to this.

Properties:
• Default timescale
• Ratio
• Status (Enabled or Disabled)

ACES:
Actions:
• Set default Timescale
• Set Ratio
• Set Enabled

Conditions:
• Is enabled
• Compare default timescale
• Compare Ratio

Expressions:
• Timescale
• Ratio
• Status ("Enabled" or "Disabled")

Last edited by skymen on Wed Oct 04, 2017 7:06 pm, edited 1 time in total.
B
44
S
10
G
2
Posts: 252
Reputation: 3,984

### » Thu Aug 10, 2017 12:50 am

UPDATE:
Some bugfix
Added a param where you're allowed to set the default global timescale
Added actions, expressions and conditions accordingly

B
44
S
10
G
2
Posts: 252
Reputation: 3,984

### » Wed Oct 04, 2017 7:04 pm

This is cool, port to C3 pls? Put on store for 1\$, get rich.
Black Bobby The Hole RPG game Greenlit with 303 votes.
B
45
S
10
G
1
Posts: 195
Reputation: 3,575

### » Thu Oct 05, 2017 9:29 am

Nicely done, thank you and good luck
B
266
S
51
G
15
Posts: 2,038
Reputation: 42,893