RafaelBarbosatec / bonfire

(RPG maker) Create RPG-style or similar games more simply with Flame.
https://bonfire-engine.github.io
MIT License
1.18k stars 177 forks source link

[Bug]: When using a fixed resolution, the joystick appears in the wrong position, and it's unable to properly control the player. #526

Closed devchenli closed 3 weeks ago

devchenli commented 4 weeks ago

What happened?

return BonfireWidget( cameraConfig: CameraConfig( resolution: Vector2(1280, 720), zoom: 3, )....

截屏2024-06-07 09 21 04

Steps to reproduce?

Just set : 

cameraConfig: CameraConfig(
        resolution: Vector2(1280, 720),
        zoom: 3,
      ),

    playerControllers: [
        Joystick(
          directional: JoystickDirectional(),
          actions: [
            JoystickAction(
              actionId: 1,
              margin: const EdgeInsets.all(50),
            ),
          ],
        ),.....

and the joystick appears in the wrong position.

What did you expect to happen?

It's a bug ?

Bonfire version

3.9.4

Relevant log output

No response

RafaelBarbosatec commented 3 weeks ago

Thanks so much for this report! Fixed in Version 3.9.5