Detecting when a portal is moved or clicked

From Planimate Knowledge Base
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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