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.

Input Where?

I'm creating a script for a special ability that is activated on the map. It activates when you press A, in which a small window appears with the bar of energy you have to use this skill. I've created a Window script and added my scene stuff in Scene_Map, but where do I put the code that detects input and deals with it? When I put it in the Window script or Scene_Map, I get errors.
 
Go to Game_Player and find this near the bottom:
Code:
if Input.trigger?(Input::C)
  # Same position and front event determinant
  check_event_trigger_here([0])
  check_event_trigger_there([0,1,2])
end
Add what you want below it.
 

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