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.


    Moving a 2d list of SpriteNodes simultaneously?

    Pythonista
    2
    2
    877
    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.
    • Metaparadox
      Metaparadox last edited by

      Is it possible to use Actions to move a 2d list of SpriteNodes in a scene simultaneously? I’m trying to figure out a way to move a tile map in the game I’m making without iterating through the list and moving each SpriteNode separately.

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

        If the SpriteNodes always move together, you could have them all as children of a dummy Node that you move around.

        Or, you could do
        [N.run_action(A) for N in list_of_nodes]

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