Skip to content

Add Default ViewWidth and ViewHeight to Actor #3

@quinnhoener

Description

@quinnhoener

In ActorLoader._ReadShot, there's a block for grabbing the view width and height. Stepping through the loading process in Chrome seems that these values are never set.

actor._ViewWidth = block.reader.readFloat32();
actor._ViewHeight = block.reader.readFloat32();

Ideally I'd love these values to be the base width and height of the initial frame of the animation. Currently in the Construct 2 Plugin, I have it set that the user has to hand-type the width and height so that scaling in the game engine works correctly to match what you've set in the editor. Having this based in the runtime would be pretty great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions