Page 1 of 1

Load hero from to game from RUBE

Posted: Tue Sep 19, 2017 5:11 pm
by FLYNSXCOOL
Tell me, what will be the code hero in a level from a json file (or any other option supported by R. U. B. E). For example - If a hero consists of 10 bodies.
in the description https://www.iforce2d.net/b2djson/ - every body and the connection need to upload separately? then combine... Yes?

Re: Load hero from to game from RUBE

Posted: Thu Sep 21, 2017 6:38 am
by iforce2d
Normally you would make the character in one file, and the level in another file.
You can load a file into an existing world using the method mentioned on this page in the section titled "Merging files into the same world"
http://www.iforce2d.net/b2djson/#merging