Results 1 to 10 of 10

Thread: Writting map editor from scratch tutorial (With Allegro)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    No, you don't need 2 offset variables, ViewPointX already does that. If you wanted to also draw a tool panel (instead of using IDE components) on the left side, and always draw the entire map more to right, then you would use OffsetX. But then it would be
    GridXPosition := ((Mouse.X + ViewPointX - ToolPanelWidth) div GridCellWidth);
    Last edited by User137; 13-06-2013 at 04:30 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •