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.

Newcomers DBPro Corner / Whats the best way for controlling a player

Author
Message
nrasool
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Surrey Area
Posted: 20th Apr 2004 00:38 Edited at: 20th Apr 2004 00:39
Hi there

Software: DarkBasic Pro
Version: 5.2 Upgrade


Please could someone check the following code; i am writing a small demo which is a 3rd person perpective (ala Resident evil style) and was wondering about the controls for the player

Below is my code for the player movement, this is fine, but i want to know what the position is for the player when you press UP arrow.
Could someone please check the code and put in suggestion on how to achieve this

Declared variables for player


Loading character .x file code


Controlling player code in the main loop


Many thanks

Kind Regards

Nadeem

A Good Programmer never blames his tools
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 20th Apr 2004 00:57
I dont fully understand the question, but to get the position of an object you use

object position x(objectNumber)
object position y(objectNumber)
object position z(objectNumber)

for each of the 3D coordinates.

Its not a bug, its a feature!
nrasool
21
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Surrey Area
Posted: 20th Apr 2004 01:58
Thanks Kentaree;

Strangly i could not see those commands, i was actually trying to find them in the online help. Appreciate it

A Good Programmer never blames his tools

Login to post a reply

Server time is: 2024-11-26 14:42:16
Your offset time is: 2024-11-26 14:42:16