Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodePaused and scenePaused have no effect #17

Open
mo-gr opened this issue May 2, 2020 · 0 comments
Open

nodePaused and scenePaused have no effect #17

mo-gr opened this issue May 2, 2020 · 0 comments

Comments

@mo-gr
Copy link

mo-gr commented May 2, 2020

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.

Am I doing something wrong? Is my understanding of paused wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant