Couple of questions about using rube
Posted: Wed Jun 10, 2015 6:48 pm
1. The snap to grid only works from the center position, is there a way to get it to snap to the bottom left corner for example. I was trying to snap an image to 0,0 in the world but the only way I could find to do it was to position it manually with the translate [T] function.
2. Is it more efficient performance wise to use the n-sided polygon or the open ended chain shape for creating large levels? (more of a box2d question)
3. I'm finding the asset path functionality: "relative to .rube file", "relative to exported .json" really confusing. I'd much rather just be able to pass a path of my choosing, when I load images in cocos2d-x looking in the /Resources/ folder I just want to pass my path directory from inside there with the rube data. E.g. levels/ground.png. Is there an easy way to do this that I've overlooked?
4. I was wondering if it's possible to create simple functionality specifically within a rube scene to export as JSON, such as a kinematic platform moving up and down. Without having to do it in source code. I know if you want to work with the bodies/fixtures from the scene you have to getBodyForName("") etc. It would be nice to not have to worry about that for really simple functions, maybe some sort of script loader. Can I do this with scripts or would this be a pointless endeavor?
2. Is it more efficient performance wise to use the n-sided polygon or the open ended chain shape for creating large levels? (more of a box2d question)
3. I'm finding the asset path functionality: "relative to .rube file", "relative to exported .json" really confusing. I'd much rather just be able to pass a path of my choosing, when I load images in cocos2d-x looking in the /Resources/ folder I just want to pass my path directory from inside there with the rube data. E.g. levels/ground.png. Is there an easy way to do this that I've overlooked?
4. I was wondering if it's possible to create simple functionality specifically within a rube scene to export as JSON, such as a kinematic platform moving up and down. Without having to do it in source code. I know if you want to work with the bodies/fixtures from the scene you have to getBodyForName("") etc. It would be nice to not have to worry about that for really simple functions, maybe some sort of script loader. Can I do this with scripts or would this be a pointless endeavor?