Moving a 2d list of SpriteNodes simultaneously?
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.
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]