Forum Archive

how do you Blur stuff in scene

Sparky1

I am making a game in scene and I want to blur the background when you pause the game. Is there a way to do that inside of scene. I can't find anything about it. I have tried finding a way to capture the screen and blur that but I can't find a way to capture the screen, all the methods i have tried don't work on pythoinsta. Any methods of bluring the background (: .

cvp

When you pause the Scene, you could display a subview with any background, like (self is the scene)

            v = ui.View()
            w,h = ui.get_screen_size()
            v.frame = (0,0,w,h)
            v.background_color = (1,0,0,0.5)
            self.view.add_subview(v)

and remove or hide the subview when you restart the scene.

cvp

And try the last script of this topic to get a Blurr effect.