Detecting when a portal is moved or clicked

From Planimate Knowledge Base
Jump to: navigation, search

Portals have object options Clickable During Run and Moveable During Run which causes them to respond to clicks and drags. They send the following scoped broadcast to their subsystem which the modeller can intercept:


_portal clicked
_portal moved

These will set the following item attributes if they are defined for the class which sends the broadcast:

_x : x position of mouse
_y : y position of mouse
_buttons : which button was clicked, 1 = left, 2 = right
_panel : panel ID of panel where the interaction occured.




idkbase note 100