Source Academy Modules
    Preparing search index...

    Function create_anim_frame_config

    • Create animation frame config, can be used to configure a specific frame within an animation.

      The key should refer to an image that is already loaded. To make frame_config from spritesheet based on its frames, use create_anim_spritesheet_frame_configs instead.

      Parameters

      • key: string

        key that is associated with the sprite at this frame

      • duration: number = 0

        duration, in ms, of this frame of the animation

      • visible: boolean = true

        should the parent object be visible during this frame?

      Returns ObjectConfig

      animation frame config