My game is lagging like crazy as one of the variables rises

rage


what this is supposed to do, is make the “rage” variable rise slowly, and kill the player when it rises above 100. And it does it’s job pretty well. Just one major problem. The game gets laggy as hell around 30, and is unplayable by the time it reaches 50. What’s causing this?

Don’t make the execution loop like you have it, just use looping timers.

I don’t know what exactly is causing the lag, but I do know a better way of implementing what you want:

IncrementRage

The “++” node is called “Increment Int”
If you want to make it check the value of “Rage”, put that right after the “++” node.

Hope this helps!

1 Like