RafaelBarbosatec / bonfire

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

[Bug]: The goblin attacks while in conversation #432

Closed shinriyo closed 1 year ago

shinriyo commented 1 year ago

What happened?

It is funny but the goblin attacks while in conversation.

Screenshot 2023-09-20 at 15 18 26

Steps to reproduce?

1. Go to Manual Map.
2. Talk to goblin

What did you expect to happen?

It might be by design, but the knight gets killed during the conversation. In typical RPG game design, enemies don't get attacked during conversations.

Bonfire version

v3.0.0-beta.10

Relevant log output

No response

RafaelBarbosatec commented 1 year ago

It's not a bug, I just not was implement this. I could do pause in the game using gameRef.pauseEngine() or create a global variable to stop all beheavors

RafaelBarbosatec commented 1 year ago

You are running in IOS device. From your prints it looks like it's not looking good on this platform. I'll take some time later to look better at the iPhone. Running on macos everything is OK.

shinriyo commented 1 year ago

ezgif-3-5b660f42eb

From your prints it looks like it's not looking good on this platform.

yes it is

RafaelBarbosatec commented 1 year ago

It's problem of the Impeller. I found the issue about it in flutter repository. take a look https://github.com/flutter/flutter/issues/132849

RafaelBarbosatec commented 1 year ago

To you get a better experience pls test the project in Android device, web using canvaskit or desktop(macos in your case)

shinriyo commented 1 year ago

Impeller is a new rendering engine that brought in Flutter 3.7. I tried to use Flutter 3.3.8, but it uses version Dart 2.18.4 which not be supported by bonfire.

I just will set.

// lightingColorGame: Colors.black.withOpacity(0.75),

in the file example/lib/manual_map/game_manual_map.dart

RafaelBarbosatec commented 1 year ago

Yes, commenting this line your are disabling the lighting system.