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

run_action crash #66

Open
onemanstartup opened this issue Jan 27, 2014 · 0 comments
Open

run_action crash #66

onemanstartup opened this issue Jan 27, 2014 · 0 comments

Comments

@onemanstartup
Copy link

I have this code.

class PersonSprite < Joybox::Physics::PhysicsSprite
  def move_left
    self.runAction @walking_action unless self.running_actions?
    self.flip x: true, y: false
  end

  def move_right
    self.runAction @walking_action unless self.running_actions?
    self.flip x: false, y: false
  end
end

move_left working and move_right is not.

2014-01-27 07:39:47.361 Code Red[15426:8003] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CCRepeatForever duration]: unrecognized selector sent to instance 0x7f88087d4330'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff8408541c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff87122e75 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff840882ed -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x00007fff83fe35b2 ___forwarding___ + 1010
    4   CoreFoundation                      0x00007fff83fe3138 _CF_forwarding_prep_0 + 120
    5   Code Red                            0x000000010a3d8fe5 -[CCSequence initOne:two:] + 46
    6   Code Red                            0x000000010a3d8fa0 +[CCSequence actionOne:two:] + 48
    7   Code Red                            0x000000010a3d8f47 +[CCSequence actionWithArray:] + 116
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