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 / Need help moving object.

Author
Message
Munro
15
Years of Service
User Offline
Joined: 13th Nov 2008
Location:
Posted: 14th Nov 2008 06:39
Hello, I came up with some code that displays a camera behind a object. Now I need to know how to move that camera and object at the same time. Or an easier way to make an object a player's character like some kind of command or something. (most likely an if statement using dbkeydown,up..etc)
Swordsman
15
Years of Service
User Offline
Joined: 12th Nov 2008
Location: Wigan, England
Posted: 15th Nov 2008 04:57
In your main loop, find how much the object has moved per frame and move the cam,era the same distance on each axis?

Perhaps I don't understand the question.

Login to post a reply

Server time is: 2024-09-30 11:37:27
Your offset time is: 2024-09-30 11:37:27