Page 1 of 1

Corona Support and walking character

Posted: Thu Aug 10, 2017 3:21 pm
by Animator

is there loader for Corona SDK, if not, do you think it will be easy for me to add it? using json file?

another question, I am trying to do, "walking simulation" where character steps is controlled by user input (each tap will trigger one step) and physics/gravity. do you think RUBE is the right tool for that? or I should check spine?

Re: Corona Support and walking character

Posted: Fri Aug 11, 2017 1:18 am
by iforce2d
Last I checked Corona does not expose enough of the underlying Box2D features to use RUBE to its full capability.

In general to load a RUBE scene you need to parse the JSON text, and use that structure to create a world and execute functions of the Box2D API to modify that world. Looks like Corona has the first part covered, but maybe not the second.

An example in C++ might be useful to see what I mean by "execute Box2D functions", eg. create a world, create bodies, add fixtures to bodies, set fixture properties, basically everything Box2D can do: ... 2dJson.cpp

I don't know exactly what you mean by "walking simulation". From your description it could be as simple as having a character as a body with a single circle fixture, and a display texture that changes as it moves. If you are talking about making a fully physic-enabled rag-doll type construction, I think you will find the control of that to be extremely difficult. In most cases you'll need to make huge restrictions on the type of movement and the gameplay.
For example,
- a character with no control of any limbs at all:
- a character that hardly moves
- a completely fake walk cycle