Yes, but it is okay. I will just use the time module instead. Thank you all for your help. God bless you all in Jesus Christ’s MIGHTY NAME!!!!
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.
Best posts made by Splefix
-
RE: [SOLVED] Calling methods every n seconds in scene.update()
-
RE: How to get a SpriteNode to change image / colour on screen-touching another Sprite?
Okay so I learnt that you can get the frame of a SpriteNode. Say that your sprite is moving in random directions like an AI finding paths. Now take the frame of the SpriteNode:
E.g:def setup(self): trap = SpriteNode('sprite', position=self.size/2) AI = SpriteNode('sprite', position=self.size/3 trap_location = trap.frame self.add_child(AI) self.add_child(trap)
Now in the update function, check if the location of the AI is in the location of the trap:
E.g:def update(self): if (self.AI.frame.x and self.AI.frame.y) in trap_location: # Do the rest of your code here.
-
RE: [SOLVED] No module named ‘httplib’.
@JohnB
Thanks for your reply on this! I uninstalled some packages I don’t know about, and now it has started to work once again!God bless you abundantly friend!