|
Drawing bitmap on the display rather than on the map |
Themilkshake
Member #17,095
June 2019
|
Hello everyone, |
Edgar Reynaldo
Major Reynaldo
May 2007
|
What you're looking for is al_set_target_bitmap. The coordinates are on the target bitmap, so whatever you set it to be, that is where they will be drawn. Reset the drawing target to the backbuffer when you're done. EDIT OR maybe I misunderstood what you want. If you're drawing to the map, you need map coordinates, if you're drawing to the screen, you need screen coordinates. To relate the two together, take the position on your map, and subtract it from your player's map coordinates. This will give you the screen coordinates of your player (whether they are on screen or not). My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Themilkshake
Member #17,095
June 2019
|
Thank you very much, I got it working properly now! |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Congrats! If you need any more help, that's what we're here for. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|