Open mo-gr opened 4 years ago
I'm playing around with the SpriteKit binding trying to learn and understand the basics. I have the following simple scene:
import Graphics.SpriteKit moveThisNode = (moveTo (Point 200 200)) {actionDuration = 10} aSprite = (spriteWithColorSize redColor (Size 2 2)) { nodePosition = Point 125 125, nodeSpeed = 1, nodeActionDirectives = [ RunAction moveThisNode Nothing ], nodePaused = True } sceneWithSprite = (sceneWithSize (Size 250 250)) { scenePaused = True, sceneChildren = [aSprite] }
Since both, the node and the scene are set to be paused, I would expect the sprite not to move.
However, when I render the sceneWithSprite in Haskell for Mac, I clearly see the little red sprite moving.
sceneWithSprite
Am I doing something wrong? Is my understanding of paused wrong?
I'm playing around with the SpriteKit binding trying to learn and understand the basics. I have the following simple scene:
Since both, the node and the scene are set to be paused, I would expect the sprite not to move.
However, when I render the
sceneWithSprite
in Haskell for Mac, I clearly see the little red sprite moving.Am I doing something wrong? Is my understanding of paused wrong?