A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AlmasB/FXGL/issues/1168 below:

Viewport improvements · Issue #1168 · AlmasB/FXGL · GitHub

Hi:

Is there any way to extend effects on viewport?
currently there are only 3 ways of viewport effect: shake, fade and flash which works perfectly nice
and is it possible for developers to create their own viewport effect?
like if the protagonist gets hit the viewport border becomes red and then fade out to warn the player
we read the source code and seems like we have to get the camera first
but camera is the internal variable so it can't be used outside the viewport class

is it possible to provide a public method to allow developer to extend the effect then add in the camera view components?

Thanks

Originally posted by @chengenzhao in #1165


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4