Log In  
[ :: Read More :: ]

I'd like a way to move sprites in the map editor in a way that doesn't effect what is already drawn on the map.

It might be hard to understand what I mean and why you'd want it without an example.

I like to refer to sprites in code by their ID, and organize them by function to essentially act as free flags. For example I can put all passable map tiles in slots 0-15 (things like grass, roads, dirt) and all impassable map tiles in slots 16-31 (things like boulders, cliffs, water, walls), and use code to check the tiles directly in map data. If it's <16, the player can walk on it, if it's >15 then prevent movement.

I mean it's nice to just keep your sprites in a logical order anyway, right?

But if I need to add tiles later or shuffle things around within sprites, it changes the map. Move water where grass used to be and suddenly all the grass on the map is water.

What I would like is something like...when in the editor, ctrl+drag a sprite to another location, the two sprites swap, AND the map data is iterated over to swap the values there too. all 10s become 15 and all 15s become 10, that sort of thing. This would maintain what you have drawn in the map without having to redraw the whole thing.

And it's not just useful for referring to sprites by ID, it's nice if you need to move sprites around at any time, while maintaining the map.

P#48895 2018-02-02 13:57 ( Edited 2018-02-02 19:25)

[ :: Read More :: ]

Cart #48760 | 2018-01-31 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Just a little song I made while messing around with the music editor. Visualizer code by KittenM4ster, and scrolling text by MrBoxBox...technically neither was necessary to the music but their previous work in making music carts simple and visually interesting is very much appreciated.

Nothing mindblowing, just getting started with Pico-8 and having fun with it.

P#48761 2018-01-30 20:55 ( Edited 2018-01-31 14:08)

Follow Lexaloffle:          
Generated 2024-04-18 14:26:15 | 0.069s | Q:9