omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Bjucha

    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 2
    • Followers 0
    • Topics 24
    • Posts 102
    • Best 4
    • Controversial 0
    • Groups 0

    Bjucha

    @Bjucha

    4
    Reputation
    1784
    Profile views
    102
    Posts
    0
    Followers
    2
    Following
    Joined Last Online

    Bjucha Unfollow Follow

    Best posts made by Bjucha

    • RE: Kill all Aliens!

      Hello again!

      Game update:

      • Power-up works fine now (They do not work on bosses)
      • Added second boss
      • Fixed some issues with enemy lasers and boss lasers
      • Added score (Just for fun)

      Link to game: https://gist.github.com/bjucha81/c4d369fc53e8a31ede218a5476116fa2

      ToDo:

      • Add new enemies
      • Add final boss or more bosses
      • more power-ups
      • Start up screen/ end screen
      posted in Pythonista
      Bjucha
      Bjucha
    • Kill all Aliens!

      Hello. Just added my space shooter game if any of you are interested in testing it.

      https://github.com/bjucha81/KillAllAliens

      It's far from completed but it has a boss now

      Things in need of improvement and bugs

      • Boss only moves when beeing hit ( wanted it to move all the time
      • Enemy lasers do not always need to hit the ship ( if they are really close it considered a hit)
      • Distance to Boss needs to reset when boss is killed so distance to next boss is displayed)
      • PowerUps!!!
      • Alot more but these are the things im working on now

      Please leave feedback for improvments Im only doing this because it's fun and I want to learn

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: Why do I get NameError when using main()

      @ccc thank you as always you are very helpful. Understood the problem but not the solution. This is great!

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: Possible to change menubar/header color and font for ui.view?

      @ccc it's not crashing anymore now thanks to you!
      I also found an other issue that I could fix thanks to this
      Really greatful for your help

      posted in Pythonista
      Bjucha
      Bjucha

    Latest posts made by Bjucha

    • RE: Tutorial for Action.call method?

      Ok thanks. Will give it a try

      posted in Pythonista
      Bjucha
      Bjucha
    • Tutorial for Action.call method?

      Hello Im having a hard time getting Action.call method to work. Is there a tutorial for Scene.Action methods (except for the help documentation) I want to call the function:

      def twin_action(self,twinboss):
      	
      		```
      
      Using this line of code:
      

      blasers.run_action(A.sequence(actions), A.call(self.twin_action())) ```

      But It seems that the Action.call function does not like that the twin_action takes both self and twinboss with it.

      I really dont know how to fix it, any ideas/solutions?

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB Thank you, gonna se if I can xome up with some kind of function to be called

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB I got it to work! But I do still have one question, Can the start position update? As of now it looks like this:

      blasers = SpriteNode('spc:LaserRed15' , parent=self)
      		blasers.z_position = -1
      		a,b = boss.position
      		
      		
      		
      		blasers.run_action(A.repeat_forever(A.sequence(A.move_to(a,b), A.fade_to(1), A.move_to(10,10), A.fade_to(0))))
      

      The problem is that the boss moves, so I though that by using ```
      a,b = boss.position

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB hmm, Im starting to understand it now thanks to you. Gonna see if I can get it to work,

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB But if I don’t use Action.Remove, the SpriteNode will not disappear, Since this is ”Laser” shot by an other SpriteNode I want them to move to a position then disappear and then the repeated. I thought that that the Action.Repeat_forever would run the whole process of the actions phase over and over again.

      If I can’t use Action.remove() how can I make it work as I wanted?

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      Hmm still cant get it to work right.

      I thought this would work:

      blasers = SpriteNode('spc:BoltSilver' , parent=self)
      		blasers.position = twinboss.position + (0, 30)
      		blasers.z_position = -1
      		b = random.uniform(10.0, 250)
      		actions = [A.move_to(b, 10, 2 * 1),Action.remove()] 
      		
      		
      		
      		blasers.run_action(A.repeat_forever(A.sequence(actions)))```
      
      But the action does not repeat, I thought that A.repeat_forever would loop actions, but is only runs once
      
      
      What am I missing?
      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB Ah, I have been looking at it from the wrong way. I thought A.repeat_forever came after, It still does not work perfectly but At least im not getting the Type Error anymore
      Thank you man, gonna see if I can get it to work as I want it to now

      posted in Pythonista
      Bjucha
      Bjucha
    • RE: TypeError: Expected an Action object

      @JonB hmm I thought that I just could replace sequence with repeat_forever, but are you saying that remove method can not be there?
      Gonna try it and se if I can get it to work

      posted in Pythonista
      Bjucha
      Bjucha
    • TypeError: Expected an Action object

      Hello.
      Does anybody know why I get a TypeError, when using repeat_forever method for scene.Action? If I use sequence instead it works, but I would really like to use repeat_forever.

      Here is the part of the code:

      blasers = SpriteNode('spc:LaserRed9' , parent=self)
      		blasers.position = twinboss.position + (0, 30)
      		blasers.z_position = -1
      		b = random.uniform(10.0, 250)
      		actions = [A.move_to(b, 100, 2 * 1), A.remove()]													
      		blasers.run_action(A.repeat_forever(actions))
      		self.blasers.append(blasers)
      

      But if I use:

      blasers = SpriteNode('spc:LaserGreen13' , parent=self)
      		blasers.position = twinboss.position + (0, 30)
      		blasers.z_position = -1
      		b = random.uniform(10.0, 250)
      		actions = [A.move_to(b, 100, 2 * 1), A.remove()]													
      		blasers.run_action(A.sequence(actions))
      		self.blasers.append(blasers)
      

      It works fine, happy for any help...

      posted in Pythonista
      Bjucha
      Bjucha