Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Which script contains the event trigger script for Action Button?

Hero

Member

I looked in the Game_Event one but it doesn't seem to be there. Does anyone know where it might be? If it is in the Game_Event script, which part am I supposed to edit? I wanted to add another button that also triggers events using Action Button without having to change the game pad (This is for a specific feature I'm trying to obtain).
 
Hero;268147 said:
I looked in the Game_Event one but it doesn't seem to be there. Does anyone know where it might be? If it is in the Game_Event script, which part am I supposed to edit? I wanted to add another button that also triggers events using Action Button without having to change the game pad (This is for a specific feature I'm trying to obtain).

In the last lines of Game_Player
Code:
      # If C button was pressed
      if Input.trigger?(Input::C)
        # Same position and front event determinant
        check_event_trigger_here([0])
        check_event_trigger_there([0,1,2])
      end
 

Hero

Member

Ah, thanks :D . I got exactly what I wanted.

EDIT: Okay, now a new problem arises. When I set a condition for "When (Button) is pressed...." on events, switches aren't executed in that condition branch. Can it be because of the change in the script?
 

Hero

Member

I haven't done a single thing. All I've done is placed the script inside the SDK_Script. The switches and stuff were working and everything but as soon as I went back, they stopped functioning. Oh well, I think I'll just replace my Script data, seeing as how I've backed it up before doing any major editting.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top