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 / Stairs on a fps game????

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 7th Nov 2008 00:34
I was wondering how to make my player walk up stairs??????

Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 7th Nov 2008 17:11 Edited at: 7th Nov 2008 21:19
I'm not a 3D guy, but I'd imagine you could treat the stairs like a ramp.

Ideally:
.....[]
...[]
.[]

Is actually:

..../[]
../[]
/[]

Hope this helps.

-Irojo


I download memory.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Nov 2008 20:17
check out:

Ramp Collision Thread

and

Ground Tilt

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 8th Nov 2008 00:50
kk ty im checkin em out and i thought the ramp thing was what to do but didnt know how to go about it
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 8th Nov 2008 00:57
Perhaps put a sloping matrix that isn't visible, and detecting the matrix height?

Again, I'm not very familiar with this stuff.


I download memory.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 8th Nov 2008 03:28
Hey, that's a pretty good idea Irojo! Just hide the matrix under your object stairs. Since there is no hide matrix command, texture it black and use transparency or ghosting.

I made this matrix kinda stair-like, but you could just use an incline like Irojo suggests. Arrows to move mouse to steer



Enjoy your day.
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 9th Nov 2008 16:12
You can also use sparky's collision .dll.I've used it in my FPS.Here's a video http://www.youtube.com/watch?v=CKsJLhWVZBc
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 9th Nov 2008 21:31
ok im gunna try the matrix thing but how would sparkys thing help with stairs i thought sparky was just for like collision not for trying walk on objects exc.?????? because all it says in the readme 4 sparky is the set object collision on and stuff like that (btw awesome game you got there bat out of hell)
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 9th Nov 2008 21:41
wouldn't using a matrix present the problem of knowing what to check for collision? I mean, you want collision with the floor object mainly, but how would you switch when you got to the stairs?

Ever notice how in Microsoft word, the word "microsoft" is auto corrected to be "Microsoft" but "macintosh" just gets the dumb red underline?
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 9th Nov 2008 23:35
@BN2
I'm guessing the vertical position of the player would always be the ground height of the matrix and so the player would never collide with the stairs and even so you could just turn collision off on the stairs.

A small program that works is better than a large one that doesn't.

DBC Challenge Rank: Rookie
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 10th Nov 2008 00:51
Quote: "ok im gunna try the matrix thing but how would sparkys thing help with stairs i thought sparky was just for like collision not for trying walk on objects exc.?????? because all it says in the readme 4 sparky is the set object collision on and stuff like that "

Must not have read through the ground tilt link I supplied... then again, maybe the information isn't clear.

Enjoy your day.
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 10th Nov 2008 17:19
Quote: "but how would sparkys thing help with stairs i thought sparky was just for like collision not for trying walk on objects exc"



Yes you can walk on objects.Let me search my PC for the example.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 11th Nov 2008 01:32
hey latch i mite have missed it i'll look through again

and ya if you find it tell me bat thanx
Jmahmood
18
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 11th Nov 2008 10:48
I found it in the codebase.Enjoy.

Attachments

Login to view attachments
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 12th Nov 2008 02:21
thanks man i'll look over it

Login to post a reply

Server time is: 2025-06-07 08:28:04
Your offset time is: 2025-06-07 08:28:04