omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    how do you Blur stuff in scene

    Pythonista
    blur game scene
    2
    3
    1227
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Sparky1
      Sparky1 last edited by

      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 (: .

      1 Reply Last reply Reply Quote 0
      • cvp
        cvp last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors