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.62k stars 477 forks source link

Changes to input settings doesn't apply until the build cache is emptied #934

Open regular-space opened 2 years ago

regular-space commented 2 years ago

Describe the bug Changes to input settings doesn't apply on runtime until the build cache is emptied.

To Reproduce Steps to reproduce the behavior:

  1. Create a new project
  2. In the settings, go to Engine: Platformer or Engine: Top Down 2D
  3. Select a new input from the dropdown. For example, change the jump button for Platformer to be B instead of A
  4. Run game
  5. Press your new input. It won't be applied.
  6. Empty the build cache and run again. The new input should be applied

Expected behavior Expected that changing input settings should be applied to the next run, without emptying the build cache.

Platform (please complete the following information):

Additional context If this is intended, maybe the user should receive a message to empty the cache.

pau-tomas commented 2 years ago

I can't reproduce this issue, creating a new project with a TopDown 2D scene uses A to interact for me.

What I observed is that if I change the Interact Button to B this won't work unless I Empty Build Cache and build again.

regular-space commented 2 years ago

Thanks, I think you've found the real issue. I'll edit the report to reflect this.