Crystal Space
Welcome, Guest. Please login or register.
December 22, 2014, 03:33:43 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9305 Members
Latest Member: Fabiorzad
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  Transition between levels
« previous next »
Pages: [1] Print
Author Topic: Transition between levels  (Read 1672 times)
FCP
Guest


Email
« on: February 24, 2006, 07:06:55 pm »

Yet another question - how can a transition between 2 world files (levels) can be done in crystal space?

Is it necesseray to reload the entire Crystal Space application with another filename as a parameter for the LoadMap() function or can references be setup inside the worldfile itself?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: February 24, 2006, 08:25:59 pm »

Yet another question - how can a transition between 2 world files (levels) can be done in crystal space?

Is it necesseray to reload the entire Crystal Space application with another filename as a parameter for the LoadMap() function or can references be setup inside the worldfile itself?

You cannot do this from within a world file but you can easily add code to handle this. Most games that need this feature use this with a portal to another sector where the destination sector is part of another map and thus not loaded yet. As soon as that sector is needed the engine can call a callback in your application (check out the iPortal api for how to do that) and then you can start loading that level.

If you use CEL then the zone manager in CEL automates this for you.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.144 seconds with 16 queries.