#Issue With Time.deltatime
1 messages · Page 1 of 1 (latest)
first off, !code
📃 Large Code Blocks
Use links to services like:
https://paste.mod.gg/, https://hastebin.skyra.pw/, https://paste.ofcode.org/, https://paste.myst.rs/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
- you don't seem to be checking
Durationhere, and nothing in this code changesDuration. are you sure that's actually what you're checking? - do you perhaps have multiple instances of this component?
here, does this help? https://paste.ofcode.org/xx6NjaAFgsECkpQD7KMVad
I dont have multiple instances
so which value are you seeing as erratic?
timepassed
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
how could I fix it?
Don't start a new coroutine every frame
Maybe you can use the isTouching variable, or make a new one
let me try