Function create_interactive_config

  • Create interactive config object, can be used to configure interactive settings.

    For more details about interactive config object, see: https://photonstorm.github.io/phaser3-docs/Phaser.Types.Input.html#.InputConfiguration

    Parameters

    • draggable: boolean = false

      object will be set draggable

    • use_hand_cursor: boolean = false

      if true, pointer will be set to 'pointer' when a pointer is over it

    • pixel_perfect: boolean = false

      pixel perfect function will be set for the hit area. Only works for texture based object

    • alpha_tolerance: number = 1

      if pixel_perfect is set, this is the alpha tolerance threshold value used in the callback

    Returns ObjectConfig

    interactive config