• <option id="kikm0"><source id="kikm0"></source></option>
  • 金沙娱东城官网

    GroundAttacher Component

    Attach the entity to the ground when it lands. Useful for platformers with moving platforms. Remove the component to disable the functionality.

    Additionally, this component provides the entity with Supportable methods & events.

    Example

    Crafty.e("2D, Gravity, GroundAttacher")
        .gravity("Platform"); // entity will land on and move with entites that have the "Platform" component

    金沙娱东城官网