M
MrHarlan
Guest
Greetings!
I am trying to create an interactive titles object that detects what room it's in, shows appropriate titles on the screen through a draw text action, changes a variable based on the point_in_rectangle function, and finally on the left mouse pressed event executes a command based on the selection variable.
The left mouse pressed event isn't triggering. If I switch to the enter key pressed event, it works fine.
Does the left mouse pressed event require that the obj has a sprite, and thus it's really detecting click_in_hitbox?
I'm pretty sure I could just move the event into the step event and have an if look at whether the mouse is currently being clicked, but I was using the separate events to reduce clutter. My step event will probably get very bulky as I reuse the object for different rooms.
click event works as an enter key pressed event:
step event sets option variable based on mouse position:
I am trying to create an interactive titles object that detects what room it's in, shows appropriate titles on the screen through a draw text action, changes a variable based on the point_in_rectangle function, and finally on the left mouse pressed event executes a command based on the selection variable.
The left mouse pressed event isn't triggering. If I switch to the enter key pressed event, it works fine.
Does the left mouse pressed event require that the obj has a sprite, and thus it's really detecting click_in_hitbox?
I'm pretty sure I could just move the event into the step event and have an if look at whether the mouse is currently being clicked, but I was using the separate events to reduce clutter. My step event will probably get very bulky as I reuse the object for different rooms.
click event works as an enter key pressed event:
step event sets option variable based on mouse position: