Description

Assigns the character properties

Usage

Parameters

  • prop {Object}

    The properties are defined in the following manner:

    Name: Default value :

    {
    
        trigger: false,
        direction_fix: false,
        no_animation: false,
        stop_animation: false,
        speed: 3,
        type: "fixed"
        frequence: 0,
        nbSequenceX: 4,
        nbSequenceY: 4,
        speedAnimation: 5,
        pattern: 0,
        through: false,
        alwaysOnTop: false,
        alwaysOnBottom: false,
        regX: 0,
        regY: 0,
        direction: "bottom",
        graphic: false,
        graphic_params: {}
    }
    
    • Frequency is multiplied by 5
    • through is true if the graphic property is not defined
    • type can have the values :
      • fixed : default value
      • random : moveRandom method is called
      • approach : approachPlayer method is called

Discussion