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.

Dark GDK / How to make an object walk?

Author
Message
Bloder
17
Years of Service
User Offline
Joined: 24th Feb 2007
Location: Cyberspace
Posted: 21st Jun 2009 15:31
Hi, I'm very new to DARK GDK. Idon't want to seem noobish but how can I get a 3D character to walk around the screen?

Thanks,

If I were you, I'd make a game...
xiva
15
Years of Service
User Offline
Joined: 16th Apr 2009
Location:
Posted: 21st Jun 2009 15:42
if (dbUpKey) // if you press the up arrow
{
dbMoveObjectUp (number of object eg; 3,2.0f); //move the object up
}

if (dbDownKey)// if you press the down arrow
{
dbMoveObjectDown (3,2.0f); //move the object down
}

same for left and right. This does not make him ''walk'' but move from side to side, back and forwards. To make him ''walk'' you need to add animation at the same time
Bloder
17
Years of Service
User Offline
Joined: 24th Feb 2007
Location: Cyberspace
Posted: 21st Jun 2009 15:54
Thanks

If I were you, I'd make a game...

Login to post a reply

Server time is: 2024-10-01 06:01:37
Your offset time is: 2024-10-01 06:01:37