Hi,
float compare works, but I still have a problem. I want to spawn an object every second if the player is moving. So I created a state machine with a float compare which checks for the speed variable, if its greater than 0.1 it sends a transition to a state where the game object will be created. On this state I also have a wait action which waits for one second and after that brings me back to the first state where the variable is checked again. The strange thing is that it works but only twice.
Float compare -> Create object -> Float compare -> Create object (than remains on that state)
Any idea what this is? Could it be that its because the value of the variable doesn't change?
Thank you!