#Issue With Time.deltatime

1 messages · Page 1 of 1 (latest)

little yoke
#

On the Value Change I Enumerator the time passed var is spitting out random variables within 0 - 1(The Duration Variable). I have no idea why this happens so any help would be appreciated!

dry quail
#

first off, !code

echo coralBOT
dry quail
#
  • you don't seem to be checking Duration here, and nothing in this code changes Duration. are you sure that's actually what you're checking?
  • do you perhaps have multiple instances of this component?
little yoke
dry quail
#

so which value are you seeing as erratic?

little yoke
slender kernel
#

The code starts a new coroutine every frame. It looks random because you're looking at the output of probably hundreds of coroutines running at the same time

slender kernel
#

Don't start a new coroutine every frame

#

Maybe you can use the isTouching variable, or make a new one

little yoke
#

let me try