Best way to use functions?

Blitz3D Forums/Blitz3D Programming/Best way to use functions?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You probably don't want map loading before the main loop like that, since you can only load one map and then the game never changes. Rather, the approach would be something like call map_loading() from inside conditions() if the condition where a new map is needed is true. In a similar way, setup_collisions() should be called from inside map_loading since that is part of setting up a level.