playMaker

Author Topic: set property with every second? [SOLVED]  (Read 1270 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
set property with every second? [SOLVED]
« on: June 24, 2020, 06:14:45 AM »
Hi, is there a set property action with every second option? I am using it in a time scale 0 situation and it doesnt update the ugui slider visually.

« Last Edit: June 26, 2020, 06:43:54 PM by djaydino »
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: set property with every second?
« Reply #1 on: June 24, 2020, 01:36:05 PM »
Hi.
If its a ui slider, why are you using Get/set Properties?

There is a ui slider action : ui slider set value.

you should avoid using Get/Set Properties, only for 3rd party assets which do not have actions.

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: set property with every second?
« Reply #2 on: June 25, 2020, 10:21:49 AM »
The set slider value doesn't have a 'every second' option , so it's not working too with time scale 0.

Hi.
If its a ui slider, why are you using Get/set Properties?

There is a ui slider action : ui slider set value.

you should avoid using Get/Set Properties, only for 3rd party assets which do not have actions.
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: set property with every second?
« Reply #3 on: June 25, 2020, 12:14:57 PM »
Hi.
I just tested and checked the script.
The action does work with time scale 0.

Can you give more information of what you want to achieve?

If for example you want to add 1 each second then you could use a 'wait' and set it to 'real time' then add to the variable of the slider.

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: set property with every second?
« Reply #4 on: June 26, 2020, 10:27:24 AM »
Hi.
I just tested and checked the script.
The action does work with time scale 0.

Can you give more information of what you want to achieve?

If for example you want to add 1 each second then you could use a 'wait' and set it to 'real time' then add to the variable of the slider.

The slider visual couldnt update when i changed the value. Yeah i think using a wait might work, thanks.
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio