-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TiledWorldMap black screen #267
Comments
Hi @TaylorHo ! Beautiful game you are building 😊! |
Hi @TaylorHo. |
Yeah, I've tried with 2.6.2 too. |
I've found out what the real problem is! In my game, I start The map does not follow this zoom change. That's why parts of the map seem to take a while to load (because for the map it's as if zoom is set to 2, when in fact it's set to 1). Likewise, Is there any way to change this, so the zoom change will reflect the map's loading and limit behaviors? Or is it more practical for me to implement this zoom in another way? Example of the code: BonfireTiledWidget(
// ...
cameraConfig: CameraConfig(
moveOnlyMapArea: true,
zoom: 2,
),
onReady: (game) async {
await Future.delayed(
const Duration(milliseconds: 1500),
() {
game.camera.moveToPlayerAnimated(
zoom: 1.4,
duration: const Duration(milliseconds: 1400),
);
},
);
},
); And an example of the zoom-out effect: |
Exploring the code I got a solution!! |
Awesome! 🚀🤩 |
Hi, I've noticed an error/bug in TiledWorldMap. Using TiledWorldMap with
moveOnlyMapArea: true
in the cameraConfig, results in dark parts in the screen.The edges left and top is ok, but the map doesn't respect the
moveOnlyMapArea: true
on the bottom and right. In addition, this "dark screen" appears as the map moves (as if it takes a while to load).I've noticed this in versions > 2.5.0 (the error does not occur in previous versions, even with exactly the same codebase). Also, I'm getting this "error" in all platforms, Linux, Web, Android, etc..
Screenshots showing this:
![map_not_loading](https://user-images.githubusercontent.com/47436525/176273669-a03cf79e-fcfe-4f09-b846-cb57defa4933.png)
The map, "taking a while to load".
The
moveOnlyMapArea: true
not working correctly (the dark screen here is because the map ends).The text was updated successfully, but these errors were encountered: