Hi, I still was not able to get it right... can anyone give me a sample on how to use it? I dont think I am doing it the right way too.
I have put instance variables (oldx and oldy) to player as well as the enemy. I have set values:
PlayerBox: On Created -> Set oldx to PlayerBox.X
-> Set oldy to PlayerBox.Y
And the same for enemy too.
After this I dont know how to compare distances between the two objects. :( The distance says I have to input 4 values, whereas I just need to see if the distance between the two on X axis.
Please help :)