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 / Creating a Matrix with Stairs?

Author
Message
Big Shot
21
Years of Service
User Offline
Joined: 27th Apr 2004
Location: dunno...
Posted: 27th Feb 2005 22:14
I am looking to create a matrix or level with multiplte heights with stairs etc, but I tried doing this in Magic World but I couldn't understand the height recognition. Is there a solution in Magic World or does anyone know of an alternative?

life is a risk... take it.
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 28th Feb 2005 18:29
Matrices are meant for terrain. Use an x or 3ds model for the stairs


"Lets migrate like bricks" - Me
Los
20
Years of Service
User Offline
Joined: 3rd Jan 2005
Location:
Posted: 1st Mar 2005 14:42 Edited at: 1st Mar 2005 17:36
or use box collision? place flat boxes like stairs above your terrain, if it detects a collision when you are touching one move the character up to the boxes Y position. If you dont want to check each step so you cannot jump up to the top step just check the boxes tat are close to you. Before you are on the steps there is one on the floor.. if you are in this box check the next step up. When you get on this one move him up and check both steps either side.. only checking 3 boxes then.. like that?

or.. use the matrix and raise the matrix tiles to make your steps. ok? use the get matrix height to position your player. One thing I thought could happen is you would get a slope, an unwanted diagonal rise of your player. Well if you know where the player is... force it's Y value.. it's height to the height of the matrix tile until he reaches the next step up. walk across, keep him on the step, still on same step? move forward.. if he wants to move up to meet the slope height force him back down again. This would work but it would keep trying to get the ground height... so just check the ground height each time it meets an edge of a step.. that's another way I cme up with.

" Ahh to finish something! My boy, have you ever accomplished anything? "

Login to post a reply

Server time is: 2025-05-23 21:07:18
Your offset time is: 2025-05-23 21:07:18