How do you figure out the runtime index of each of your object types, for use with runtime.types_by_index in the javascript?
Couldn't find anything about this in the manual or forums. Is there something in the editor that determines this?
Types are assigned an index (accessible via type.index) in essentially an arbitrary sequence. It shouldn't be important what index a type gets. Also, don't rely on them being consistent between runs, because if the user deletes the type with index 0 in the editor they all shift down one... so every other type changes index!
Develop games in your browser. Powerful, performant & highly capable.
I figured that was the case, thanks!