draggable?

From PenguinMod Wiki (Official)
Draggable?
Jump to navigation Jump to search


The draggable? block is a boolean block that detects if the sprite can be dragged in the player. By default, it is false.

Workaround

This block can be worked around by using a variable when the set drag mode () block is used, and checking its value:

define make draggable
set drag mode [draggable v]
set [draggable v] to [true]
define make not draggable
set drag mode [not draggable v]
set [draggable v] to [false]

<(draggable) = [true]>

These custom blocks would be used in place of the set drag mode () block.

See also