I would like to put the number of seconds since the game object was loaded into a variable, how do I do this?
Best Answer
C
Chujo @STYLY
said
over 3 years ago
Using PlayMaker's int Add action and wait action, you can pseudo-count the number of seconds by adding a number to a variable one second at a time. You can also use the float interpolate action to change the variable by a specified number of seconds, so you can implement a gimmick where an event fires when the variable reaches a certain number.
1 Comment
Chujo @STYLY
said
over 3 years ago
Answer
Using PlayMaker's int Add action and wait action, you can pseudo-count the number of seconds by adding a number to a variable one second at a time. You can also use the float interpolate action to change the variable by a specified number of seconds, so you can implement a gimmick where an event fires when the variable reaches a certain number.
Hara
I would like to put the number of seconds since the game object was loaded into a variable, how do I do this?
Using PlayMaker's int Add action and wait action, you can pseudo-count the number of seconds by adding a number to a variable one second at a time. You can also use the float interpolate action to change the variable by a specified number of seconds, so you can implement a gimmick where an event fires when the variable reaches a certain number.
Chujo @STYLY
Using PlayMaker's int Add action and wait action, you can pseudo-count the number of seconds by adding a number to a variable one second at a time. You can also use the float interpolate action to change the variable by a specified number of seconds, so you can implement a gimmick where an event fires when the variable reaches a certain number.
-
Error message is displayed when uploading Prefabs to STYLY, and model can not be uploaded.
-
Light doesn't show up correctly in STYLY Studio.
-
I want to check if an object is in view on STYLY.
-
About how to generate an event on STYLY Mobile (AR).
-
I want to move from a STYLY scene to another website.
-
I want to determine if a player has entered a certain area in the browser.
-
I would like to upload Timeline as a prefab, but an error is displayed and can not be uploaded.
-
A model created with Blender does not display correctly in STYLY.
-
Collisions are not detected correctly with PlayMaker.
-
About Equipment of InteractionSDK.
See all 170 topics