Description

Load event on the map. The event is then sent to the scene to display

Usage

Parameters

  • name {String}

    Filename JSON. In this case, the path of the event is Data/Events/[NAME].json

  • pos {Object}

    Position on the map

    • x {Integer} Position X
    • y {Integer} Position Y

  • callback {Function} optional

    (optional) Callback function when the event is loaded and displayed. Three parameters sent

    • id {Integer} Event ID
    • event {Game_Event} : Event
    • data {Object} : Data from JSON file

  • params {Object} optional

    (optional) Additional parameter (see moveto method in Game_Character)

Discussion