chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.58k stars 474 forks source link

Rearrange the z-index of sprites #345

Open Polyducks opened 4 years ago

Polyducks commented 4 years ago

Is your feature request related to a problem? Please describe. Sometimes sprites overlap in a way which is not intended (I think based on the y axis)

Describe the solution you'd like It would be nice to be able to shuffle the z-index priority of the sprites in the scene overview window, under 'navigation' (pictured below), perhaps with up and down arrows at the side of the sprites, or on the actors themselves. Perhaps a number input next to a tick box which says 'use y-axis (default)'

image

Describe alternatives you've considered Alternatively, add an event for changing the z index of an actor.

RichardULZ commented 4 years ago

Z sorting is tricky since there's no proper z sorting on gameboy... But theoretically if the sprite is in an earlier oam slot, it gets priority when in the same x-loc. Currently sorted by Emote bubble, then player, then actors in order of being placed.

You can re order them "kind of" by duplicating your scene, deleting the actors in the master scene, then dragging the actors over from the copy in the order you want. However, this breaks what invoked actors were set, and defaults them to player :( Edit: You can reorder them while (i think) preserving connections by dragging an actor across to another scene and back without dropping it.

I think this might be a doable feature request.

lkcampbell commented 2 months ago

I was going to file a feature request on this as well. Would be really useful! :)

maxoakland commented 2 months ago

I was going to file a feature request on this as well. Would be really useful! :)

It would be a great addition to the Gameboy Color Only mode since it would work on there