AlmasB / FXGL

Java / JavaFX / Kotlin Game Library (Engine)
http://almasb.github.io/FXGL/
MIT License
4.42k stars 554 forks source link

How to use AnimatedTexture in SubScene #1276

Open xiaomoxiong opened 1 year ago

xiaomoxiong commented 1 year ago

Describe the bug How to use AnimatedTexture in SubScene

image

AlmasB commented 1 year ago

You can add it via an entity:

var e = Entity()
e.viewComponent.addChild(at)

gameWorld.addEntity(e);
xiaomoxiong commented 1 year ago

It works well, thank you!

xiaomoxiong commented 1 year ago

I have encountered another issue. In the main scene, when I click and press the close button in the top right corner that does not pop up, the game will pause. When it pops up, I move the mouse away but keep it in the application window, making the close button ineffective. At this point, the game will not close, but the animation will play quickly

I can't record the screen, I can't start the image, I'm sorry

AlmasB commented 1 year ago

Sorry, is there a way you can demonstrate this behaviour, as I am not sure what needs to happen and what is not happening, in order to reproduce this issue. Thanks.