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.

Author
Message
ClearCoder
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 22nd Mar 2003 13:40
how do i clear everything when i want to change level you know like unload the matrix and everything plz help cheers

c ya

thedudeman
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Mar 2003 14:03
just delete them like this:

rem deleting objects 1 to 10
for a = 1 to 10
delete object a
next a


if you want a fast program just re-texture the matrix or edit it instead of deleting it and making a new one!

[aged 11]

Danmatsuma
23
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 22nd Mar 2003 14:05
Something like this should work




and so on. but it really depends on how your level loading is set up, you may not want to delete everything, just the stuff you won't be using in the next level

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Mar 2003 14:08
you could just re-texture, re-position all of the objects acording to what you need in the next level.

Danmatsuma
23
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 22nd Mar 2003 14:18
Yep that's the best way, but I'm not releasing my general purpose game entity preload/spawn/bank/withdraw/delete functions 'till after the comp!!

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Danmatsuma
23
Years of Service
User Offline
Joined: 2nd Mar 2003
Location: Australia
Posted: 22nd Mar 2003 14:22
but i will give you a hint, in the code snippet above, you'd replace the "delete object()" functions with my "bank_object()" ones, which doesn't delete the objects but moves them far,far away, then turns off their collision, and hides them and also attaches them to the static world just for overkill...

Aww now I gone and told you!!
Anyway, now you have to write the function to preload them and withdraw them when you want...

ZX Spectrum 48k Issue 3, Radio shack Tape drive, Rank arena 12" T.V. set.
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 22nd Mar 2003 14:26
will someone reply to my topic. So far i'm the only one who's looked at it. it's called 'another alien game'

Login to post a reply

Server time is: 2026-06-12 03:36:23
Your offset time is: 2026-06-12 03:36:23