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.56k stars 471 forks source link

Need to be able to interact with actor and not run a button script #1301

Open tmdprogramming opened 1 year ago

tmdprogramming commented 1 year ago

Is your feature request related to a problem? Please describe. I am having trouble figuring out a way to interact with actors and not "fire" my attached a or b button script. In my game when you press the a or b button, it calls a script that checks what weapon you have equipped to that slot and then does the weapons effect.

Describe the solution you'd like It would be nice if you could have a condition that if you were to interact with an actor (so if an interactable actor is 1 tile away in the direction you were facing and you press a) that you could override the a input button.

Describe alternatives you've considered before running my a button script checking if an actor is 1 tile away in the direction the player is facing.

Additional context Add any other context or screenshots about the feature request here.

tmdprogramming commented 1 year ago

Or have a check on the attach script to button, don't do if you will be interacting if that makes sense