Jaime
Jun 9, 2021

--

Hi Samarth,

Basically, this code checks whether the Enemy would be closer to the Player if he moved 1 unit right(x+1), 1 unit left(x-1) or just stay in the middle(not deducting or adding anything on x).

--

--

Jaime
Jaime

Responses (1)