• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Object and path not in correct x y coordinates

S

shrunkenmaster

Guest
Hello All,
New to GMS2 and am having a problem with an object and its path, so I'm displaying the player xy position and the enemy xy position on the screen to help figure this out:

Enemy is following a vertical path and displays x as 120 ,but if I move the player to the same horizontal position, the player x is 216.

The y axis is also off by about +10 pixels.

I tried removing the path, but the enemy coordinates are still wrong.

What could be throwing this off?

I'm using a switch to select a random path, but they all do the same thing wrong. It doesn't seem to matter if I specify the x/y in each case either.

Any help would be great - not sure what code I need to post in order to clarify things?
Using GML, not DnD by the way.
 
Top