Corona Support and walking character

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

Corona Support and walking character

Post by Animator » Thu Aug 10, 2017 3:21 pm

Hi,

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?

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: Corona Support and walking character

Post by iforce2d » Fri Aug 11, 2017 1:18 am

Last I checked Corona does not expose enough of the underlying Box2D features to use RUBE to its full capability.
https://www.iforce2d.net/forums/viewtopic.php?f=6&t=238

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:
https://github.com/iforce2d/b2dJson/blo ... 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:
https://www.youtube.com/watch?v=bBIXpu-D_Zo
- a character that hardly moves
https://www.youtube.com/watch?v=Ilo5c1P7QCk
- a completely fake walk cycle
https://www.youtube.com/watch?v=eV0gTynz81Y

Post Reply