Timeline for What would be the easiest way to keep objects at a constant point on a 2D map, even when off-screen?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 29, 2014 at 7:48 | vote | accept | G. Meadows | ||
| Apr 25, 2014 at 13:52 | comment | added | Katana314 | The basic idea is this: When your user pans in any direction, the ONLY object variable that should be changing is the X and Y of your "camera" object. The rest, how to draw it, is deterministic every time "Draw()" is called. It takes a little bit of effort reorienting your mind around it, instead of thinking of "moving the sprites off the screen" but makes perfect sense afterward. | |
| Feb 25, 2014 at 11:08 | comment | added | G. Meadows | Busy at work, will try this tonight when I get home, thanks! | |
| Feb 24, 2014 at 10:06 | review | First posts | |||
| Feb 24, 2014 at 14:26 | |||||
| Feb 24, 2014 at 9:50 | history | answered | Mikael | CC BY-SA 3.0 |