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 »

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: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load hero from to game from RUBE

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