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.

3 Dimensional Chat / little problem with dbMoveObject() and dbLoopObject ( )

Author
Message
bhunterd
15
Years of Service
User Offline
Joined: 20th Apr 2009
Location:
Posted: 14th Aug 2009 21:06
void CtrlK ()
{
if (dbUpKey ()==1){dbMoveObject ( 5, speed );if (speed<8)speed+=0.01;}else if((speed>=0)&&(dbDownKey ()==0)){dbMoveObject ( 5, speed ); speed-=0.1;}
..................................................
}

while ( LoopGDK ( ) )
{
if (dbUpKey ()==1){ dbDeleteImage(20);dbLoopObject ( 5 );
...............................................................
dbUpdateTerrain ( );
dbSync ( );
}
I have some problem with play of animation object while use dbMoveObject() it played only when not in move
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 15th Aug 2009 11:16
You might want to post this on the DarkGDK board, rather than asking here. This board is for 3D modelling!

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 15th Aug 2009 14:21
your starting to loop the object every time you press up, and when you let go of up it continues the loop


Your signature has been erased by a mod
bhunterd
15
Years of Service
User Offline
Joined: 20th Apr 2009
Location:
Posted: 17th Aug 2009 17:35
tnx for answer sorry for uncorrect board
bhunterd
15
Years of Service
User Offline
Joined: 20th Apr 2009
Location:
Posted: 17th Aug 2009 17:48
I post it in 3d chat, becouse I think than it's chat for discuss of 3d aspects of programing with use Dark GDK.
Travis Gatlin
15
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 27th Sep 2009 02:18
WRONG THREAD!!!

yeah im southern WATCHA GONNA DO BOUT IT?

Login to post a reply

Server time is: 2024-11-24 22:38:02
Your offset time is: 2024-11-24 22:38:02