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.51k stars 469 forks source link

Y axis is reversed in Actor Set Collision Box #1589

Closed permartinson closed 3 days ago

permartinson commented 1 week ago

Describe the bug Compared to the values in the sprite editor, the Y values you have to put in to the event Actor Set Collision Box are reversed

To Reproduce Steps to reproduce the behavior:

  1. Create a new sprite
  2. Add a collision of x:0, y:-8, w:16, h:16
  3. Create a scene and add an actor that use the sprite
  4. Run the game to test the collision box
  5. Add the Actor Set Collision Box event, on init of the actor
  6. Add the same values
  7. Run the game and notice how the collision box changed

Expected behavior I expect to be able to use the same values as in the sprite editor, so that they can be previewed there.

Platform (please complete the following information):

Additional context No idea how this could be fixed without breaking projects that previously used the event.

permartinson commented 3 days ago

Just realised this event is a plugin event, sorry!

permartinson commented 3 days ago

Just realised this event is a plugin event, sorry!