If it has some kind of Set Angle property then if you set that you can use the object's angle which will be the same as the movement direction.
You can check all this in debug view to make sure the car speed and variables are what you expect. I don't see any logic for setting stamina back to its original value. Also is it's starting value greater than 0?
If you use a global variable it will work in all layouts
That's expected because you are always forcing it to go left.
Develop games in your browser. Powerful, performant & highly capable.
When you change the 0 to 180 it still moves to the right? I don't see how that could happen. Maybe if you have more than one player instance then a picking issue, other than that I don't know.
Use a global variable
Total number of functions that exist, it's not going to matter. They're not running all the time it should have no effect.
You do not have permission to view this post
Getting stuck while pathing is not really a problem with the instance but the pathing itself. You need to make sure the cell size is appropriate, tight spaces are a problem for pathfinding. Test it in a larger open space to see if it works.
When you use on destroyed you are picking only the instance that was destroyed, so you cannot then pick more monsters. You can put those events into a function, then on destroyed : run function. Function allows to pick from all instances again.
It is that but the other way around, like I said the enemy object with pick nearest to player.
Yes the condition is what you need. On the touch event you can add the condition pick monster nearest to player, then it will find path to this one.
Member since 5 Aug, 2013