Last active yesterday
you created the Crab object before by calling
crab = Crab() ?
No other idea, as I'm not using Lua..
did you have a look at: http://polycode.org/learn/events#lua ?
you don't have to create an extra class for every handled event - just declare a function and register a callback for that:
okButton:addEventListener(nil, onOkButton, UIEvent.CLICK_EVENT)
that function should look like the onCollision here:
you can then cast the event parameter:
local uiEvent = safe_cast(event, UIEvent)
to get access to ui event specific information.
by using get
uiEvent:getDispatcher() you should be able to do the same differentiation as in C++
Hope I could help!
don't miss to declare
class "Crab" at the beginning of the file
hmm... not sure - maybe have a look here (bit too tired to answer directly..):
I don't really can help... But the corefileprovider should not implement addSource, thats right as it is - the BasicFileProvider or PhysFSFileProvider implement that function... If somewhere an object is falsly used as corefileprovider this of course could lead to corruption.. But I think this is not very likely..
Jep.. See changes of:
Maybe try using the newest...
Uhm... Could you tell me which version you use exactly?
The newest goodbye_cmake should not have addLight functions..
can you manually add lights to the scene in C++?
0.8.4 is the last version that's considered stable enough to call it a Release.
goodbye_cmake version has many improvements, yes - but you definitely don't want to use that for production work so we don't call it a release and therefore the download link is not updated.
Hmm maybe you have to turn on the normals import on import...