Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CurX and CurY are wrong
#1
The mouse position isn't right...it's making you hover over that exact X and Y to work, and not the whole tile area...just open the map editor and watch the outline as you move the mouse. Also notice the X and Y with /loc when you go over your sprite and see that they aren't the same X and Y. Here's the fix:

Code:
CurX = Int(X / PIC_X)
CurY = Int(Y / PIC_Y)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)