Closed n-studio closed 11 years ago
Hello!
Thanks for the report! In the version 1.0.0 (The latest version of the gem) the run_action method is not supported on Layers or Scenes, only on Sprites.
The repository version (That will be released soon as gem :)) now supports the run_action on layers and scenes, there are some workarounds that I hope can make your code work properly:
1) Using Core::Layer call runAction instead of run_action (I haven't tested it yet but i think it should be no problem)
2) Download the beta version of the gem: http://cl.ly/QMX4 and install it using gem install joybox-1.1.0b.gem (And configure your project to use it)
3) Using a Gemfile configure the gem to be downloaded from the repository:
gem 'joybox', :git => 'git@github.com:rubymotion/Joybox.git'
I hope it helps! JK
Finally fixed in 1.1.0 :)
Hi! I can't access to run_action method with Core::Layer
Error message:
layer.rb:23:in
onEnter': undefined methodrun_action' for #<MyLayer:0xc154ba0> (NoMethodError)
my full code:
If I use CCLayer instead Core::Layer, it doesn't crash.