Jaime·FollowJun 9, 2021--1ListenShareHi 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).