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.

[Resolved]Conditional Branch Mouse Input

Status
Not open for further replies.
I feel like the biggest noob for asking this, but... If I wanted to check if the left or right mouse button was clicked in a conditional branch, what exactly would I do? Thanks.
 
You need a keyboard input module for that. Check my signature (contributions tab, keyboard-based name input) for a copy of Cybersam's keyboard input module. You can check the mouse buttons with custom conditionals then...
Code:
if Input.triggered?([i]number of mouse button of your choice[/i])
 
This topic has been resolved. If Kiniko or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

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