A post to help those who may run into similar issues and use google to look for answers :)
I recently decided to give LH2 a try, and after a quick test on a level, decided to take it a step further.
Here are a couple of things I ran into.
-
Changing the ‘myscene.lua’ and updating the .json level to load was a nice quick way to see your level in a simulator. Make sure you set up a camera object though so you see the right bit.
-
Crashes.
After a ‘simple’ test, I created a much more detailed level as a platform game. This caused issues on the variable ‘bodyimage’ I think it was. At the end of the day, it was because my platforms had the physics shape set to ‘editor’. Once I changed that to ‘Rect’ (met my needs), it worked fine. -
Crashes 2.
When running I had a repeating error on ‘transformToRestrictivePosition’ - this is because on the camera node I had ‘restrict to game world’ checked. Once I removed it it ran fine.
I’ll add more caveats as I come across them.