Corona Support and walking character

General discussion about the R.U.B.E editor
Post Reply
Posts: 1
Joined: Thu Aug 10, 2017 8:28 am

Corona Support and walking character

Post 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?
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Corona Support and walking character

Post 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
Post Reply