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 / random movement

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 19th Nov 2009 13:03
Hi all..
Suppose that there is a 3d ball in any position, we want move this 3d ball in random direction movement, but in direction X and Y only not Z..
i made this function, but the ball still static:
action 9000
16
Years of Service
User Offline
Joined: 27th May 2008
Location: Alberta, Canada
Posted: 19th Nov 2009 16:00 Edited at: 19th Nov 2009 16:01
you need to reposition your ball after changing the ballX and ballY variables.

You can do this most easily be using a few different variables, such as:

(pseudocode-ish)



Is this helpful?
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 19th Nov 2009 16:14
yours is correct I think, but first of all what he basicly has to do is call dbPositionObject ( ball, ballX, ballY, ballZ ) after changing the values...

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 19th Nov 2009 16:31
thanks for you both "action 9000" and "_Pauli_"

Login to post a reply

Server time is: 2024-10-05 23:47:11
Your offset time is: 2024-10-05 23:47:11