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 / problems with game

Author
Message
ace280
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location:
Posted: 19th Nov 2003 03:58
1) how do I go up a hill and slowly decrease speed, and go down hill and slowly gain speed?

2) how do i change 1st person view to 3rd and vise versa?

grr im angery, and im going to hit my face on a wall now!
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 19th Nov 2003 04:44
1. Find the height of the matrix tile your on, and the matrix tile nearest to you in the direction you are facing (maths) Find your angle, and then find the size of each matrix square which then you will end up with the nearest tile in the direction you are facing. Find out what the height is of the tile you are on, and the one nearest to you. If the one nearest to you is more then X then bighill=1 If moving=1 and bighill=1 then speed#=speed -1. Keep increasing speed as you move, and this will get you to slowly move faster, as long as you MOVE OBJECT 1,speed#. Do the opposite for downhill.

2. Firstly, have both settings for each camera. Then, control them with a variable.

If inkey$()="f" then FirstPerson=1
If inkey$()="p" then 3rdPerson=1

If FirstPerson=1
Position Your Camera Here
Endif

If 3rdPerson=1
Position Your Camera Here
Endif

Hope that helps a bit

RPGamer


Dont forget to Join the Forums!
ace280
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location:
Posted: 19th Nov 2003 04:54
erm..confusingid

the reason i asked these questions is im trying to make a stealth game that you can shoot in first and 3rd person perspective, and it will be sorta like the twin snakes..when it comes out.

grr im angery, and im going to hit my face on a wall now!
ace280
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location:
Posted: 19th Nov 2003 05:02
here is my code...there is something wrong, can someone fix it?

grr im angery, and im going to hit my face on a wall now!

Login to post a reply

Server time is: 2025-05-21 19:48:48
Your offset time is: 2025-05-21 19:48:48