I want to approach like Legend of Dragoon game where the damage dealt higher when button hit a lot
My closest approach is something like this
The main idea is to use if statement and increase variable value (Assume variable no. 5) for each time button is pressed (For instance spamming ok button), and then use it on damage formula (Like (a.atk - b.def) * v[5])
But this cause a heavy load(?) that cause lag and crash due to loop (Edit: This maybe because I open the console as well)
Any better approach when using common event?
My closest approach is something like this
The main idea is to use if statement and increase variable value (Assume variable no. 5) for each time button is pressed (For instance spamming ok button), and then use it on damage formula (Like (a.atk - b.def) * v[5])
But this cause a heavy load(?) that cause lag and crash due to loop (Edit: This maybe because I open the console as well)
Any better approach when using common event?