omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Vile
    3. Topics

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 21
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Vile

    • Vile

      Xcode template not working for building to iPhone running iOS 13.3.1
      Pythonista • • Vile

      2
      0
      Votes
      2
      Posts
      1453
      Views

      Vile

      Used the Xcode beta, set the target to iOS 13.3, same issue.

    • Vile

      dismissing modal scenes?
      Pythonista • scene module games modal scenes • • Vile

      1
      0
      Votes
      1
      Posts
      907
      Views

      No one has replied

    • Vile

      Sprite animation from sprite sheet at 8 FPS?
      Pythonista • sprite spritesheet game scene module animation • • Vile

      16
      0
      Votes
      16
      Posts
      7502
      Views

      cvp

      @Vile thank only @jonb 😀

    • Vile

      Clear pixel art with FILTERING_NEAREST?
      Pythonista • • Vile

      6
      0
      Votes
      6
      Posts
      2377
      Views

      cvp

      @Vile He, my code was only a part of your code for the Texture, of course the remaining of the code for nodes is still needed.
      And the code of @mikael was even better if you want to define your nodes and their texture in one line.

    • Vile

      Basic Pythonista Scene Button?
      Pythonista • • Vile

      13
      0
      Votes
      13
      Posts
      6921
      Views

      mikael

      @Vile, you can very well make a game using either ui or scene module, hide extra bars etc. To me ui module works better, but scene does have more game-like mechanics (e.g. better out-of-the-box support for animations).

      As an example of combining the two worlds:

      import scene import ui import sound class MyScene (scene.Scene): def setup(self): self.ship = scene.SpriteNode('spc:PlayerShip1Orange') self.ship.position = self.size / 2 self.add_child(self.ship) btn = ui.Button( title='Make sound', tint_color='white', background_color='blue', action=self.make_sound ) frm = btn.frame bnds = self.view.bounds btn.frame = frm.inset(-8,-8) btn.frame = ( bnds.width - btn.width - 8, bnds.height - btn.height - 8, btn.width, btn.height ) btn.flex = 'RTBL' self.view.add_subview(btn) def make_sound(self, sender): sound.play_effect('arcade:Laser_1') scene.run(MyScene())