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 / insides of models

Author
Message
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 1st Apr 2004 01:55
lets say i downloaded a castle model from the internet, i want to go inside it, but it's not going to work just to go up to it and walk in,so i was wondering if anybody could tell me how i could walk up to it and the screen would go black for a sec. and the n go away, but instead of apearring outside next to the model i'd be inside?
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 1st Apr 2004 01:58
If the castle model is big and expansive enough you could just leave it where it is, have an opening to walk through, and then you could walk right inside, checking collision against walls and all that. But if you want there to be a nice big whatitlookslikeoutside model and then have something much more expansive inside, then use the one you have already, then make a bunch of twisty passages in a modeller for the inside. Then you when you detect that you've walked into the castle you can get rid of the outside castle object and put in all the hallways and walk around in there.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 1st Apr 2004 02:19
thanks for the help
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 1st Apr 2004 02:26
i do have one more queston though, do you know how to do that detecting thingy were you walk and the screen turns black and all of a sudden your inside, and if you do could you give me an idea of how the code for it would be like?
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 1st Apr 2004 02:41
Everything is about collision. What you do it right in front of the entrance to the castle set up an invisible cube or other object like that. If the player is colliding with that cube that means that the player is walking into the castle entrance, so you'll know to CLS the screen, and load your inside object, and your game can go from there. You can then have more invisible cubes in other entrances/doorways and have them take you to various areas.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 1st Apr 2004 04:09
dude,thank you so much,i'm putting you in my credits!!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 1st Apr 2004 08:15 Edited at: 1st Apr 2004 08:16
Thanks man, don't feel obligated... .
There's loads of other people here who are masters at thist stuff. keep posting and browsing around the threads and you'll do fine.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html

Login to post a reply

Server time is: 2025-05-23 03:24:10
Your offset time is: 2025-05-23 03:24:10