Skip to content

Maniac: Scroll Map - Setting the camera with the center parameter should always consider [ScreenSizeX]/2, [ScreenSizeY]/2 to be the 0, 0 value #3671

Description

@Mimigris

When using the command Scroll Map: Set Camera with the center parameter in Maniac, it allows setting the camera to a X and Y coordinate, with an offset corresponding to half of the screen size (e.g. if you want to point at the camera point 0, 0, you need to specify the point [ScreenSizeX]/2, [ScreenSizeY]/2, which, on a 320x240 game, would correspond to 160, 120).

As of now, while this partially works in the Player, the result seems to always be off by one or two tiles (e.g. pointing at the 160, 120 tile on a 320, 240 game, on a 40x30 map seems to point the camera to 16, 8 instead of 0, 0).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions