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.

Author
Message
Bish
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Cyberspace
Posted: 26th Nov 2002 19:39
help
I know how to move an object like this
Example
if upkey()=1 then pitch object down 1,1
if downkey()=1 then pitch object up 1,1
if leftkey()=1 then turn object left 1,1
if rightkey()=1 then turn object right 1,1

but the problem is that when you let go of the key the movement of the object stops instantly. so how can you get it to stop more slowly?

plz help
Bogboy2000
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 26th Nov 2002 19:57
how do you mean more slowly.

do you mean keep moving for a short length of time after you take your finger off the key or to slow down gradually

there is an example of how to do the later of the options in DB under 3dCamera "Third person view" or something like that
Bitmap
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Latvia
Posted: 26th Nov 2002 20:01
[DB_ROOT]\help\examples\basic3d\exam09.dba

check that out, might be what you need

thy boss
Bish
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Cyberspace
Posted: 26th Nov 2002 20:23
thx but i tried to get the object to pitch in the same way but it won't work properly
plz could you give me an example

TheNVS
21
Years of Service
User Offline
Joined: 25th Oct 2002
Location: United States
Posted: 27th Nov 2002 00:29
you should pratice and figure it out yourself(it will help you in the future rather than you depend on others). if you agree then look or study my example but do not copy it. or maybe build up a program yourself and allow my program to help you for reference.

just dont copy it and paste to your game because it wont help you in the future and/or your game is going to give you more problems. trust me, it happened to me by copying the tutorial's code.

just pop it in and it will run without problems.



Login to post a reply

Server time is: 2024-03-29 11:07:05
Your offset time is: 2024-03-29 11:07:05