Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / how to load different matedit matrices in a game to make stages

Author
Message
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 8th Apr 2004 17:31
hi guyZ! does anybody know how i can load different matrices made in matedit 1.6 and call them one by one after a specific stage has been completed? thx!

phukol
guru of boredom
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: middle of no where
Posted: 11th Apr 2004 04:20
use the function that is provided with mat edit and just change the matrix numbers. i think the info is in the readme or something

we are not outnumbered! we are just in a target rich enviroment!
P4 2.4 ghz 120 GB 256 mb GeForce4
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 11th Apr 2004 11:49 Edited at: 11th Apr 2004 11:50
to quote Mr Babbage "I fail to understand what confusion of ideas could lead to such a question"

on level complet conditions being met
exit game loop temporarily
run the end of level message(if any)
increment the level number
load the level
position player and opponents
re-enter the game loop

works fine for most games, in some cases where you have a lot of level specific events you may write the code in a more linear fashion so that calls to level specific creatures/scenes/models don`t cause to much overhead when the code is skipping those it doesn`t want for that level, the simplest way would be to put the main loop in a loop and then exit the main loop and load the next level before re-entering the loop,eg:

do
do
this is main game loop
if player_has_level_key then inc level:exit
loop
load level "level"+str$(level)
call position player and monsters function
loop

would be a simple example, all you do is change the loaded level, just remember to delete anything that isn`t on the new level, it would look silly if the enemy bodies where still lay around for example.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
phukol
21
Years of Service
User Offline
Joined: 22nd Nov 2003
Location:
Posted: 12th Apr 2004 23:28
thx ill try it

phukol

Login to post a reply

Server time is: 2025-05-30 14:57:34
Your offset time is: 2025-05-30 14:57:34