Hello, in my game, I have a timer that is constantly looping that I want to turn off for a bit and then turn on again later. I declare the timer initially like this:
which works fine. However, I have not been successfully able to remove and recreate it. I’ve been trying to use the Timer API’s remove() method like this:
In your first screen of this post, replace var by this
var enemyTimer is a variable
this.enemyTimer is an attribut
There are not the same, i suggest you to read tutorials about class in js, you’ll learn things useful to develop with phaser3