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.

Newcomers DBPro Corner / Random problem

Author
Message
White Fang 12
17
Years of Service
User Offline
Joined: 28th Aug 2007
Location: In my office coding
Posted: 22nd Apr 2008 23:54
Ok basicly i'm making a code that makes way points randomly that an object will follow well it work except the random part it moves around in the same path every time and then goes around in a small circle here is the random code

can someone help me? i've tryed every thing including banging my head against the wall which hurt my head so someone please help!

I'm a noob help will be accepted
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 23rd Apr 2008 01:28
Hmm..

Well, RANDOMIZE TIMER() should only be called once, and should be outside of your main loop.

It looks as if you're trying to get a random number between -50 and 50. Your concept looks good, let's see if we can mess it up a bit.

Try this.



Login to post a reply

Server time is: 2024-11-25 06:56:28
Your offset time is: 2024-11-25 06:56:28