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 / Speeding Up Object Logic and Code

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 30th May 2009 09:36
I have an object which has x, y and z coordinates.

I have another object which can move the first object.

I have a variable that can be increased or decrease to make the object move faster or slower.

I'm not sure how to implement the variable into the second object so that it moves the object faster or slow per frame depending on the speed.

Any ideas?
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 30th May 2009 10:29
Not sure I understand what you want.

Quote: "I have a variable that can be increased or decrease to make the object move faster or slower."


Which object? It would help if you gave them names or something..

jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 30th May 2009 10:50
speed (m/f) = speed (m/s) / frame rate (f/s)

atomic knights
16
Years of Service
User Offline
Joined: 12th Apr 2008
Location: On my laptop
Posted: 6th Jun 2009 01:00
that worked great

Login to post a reply

Server time is: 2024-11-05 23:02:14
Your offset time is: 2024-11-05 23:02:14