Guys how can I make a scaffolding system based on dodges
Example if the player dodges an object very close to you gives +10 if and further away takes +3
Thanks for your help
You could calculate the distance between the two so distance(player.x,player.y,object.x,object.y) to start with and the smaller the value the more points they get.
Develop games in your browser. Powerful, performant & highly capable.
It is possible to have a code example