Load hero from to game from RUBE

General discussion about the R.U.B.E editor
Post Reply
FLYNSXCOOL
Posts: 25
Joined: Tue Sep 19, 2017 4:30 pm

Load hero from to game from RUBE

Post by FLYNSXCOOL » Tue Sep 19, 2017 5:11 pm

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?

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

Re: Load hero from to game from RUBE

Post by iforce2d » Thu Sep 21, 2017 6:38 am

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

Post Reply