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 / Simple AI Code Help

Author
Message
Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 22nd Mar 2005 04:59


When i use that code, the npc walks along in the same direction at the start each time, then goes a random direction but carries on in the same direction after that instead of changing each time npcmove = 300

P.S that code snippet is in my main loop
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Mar 2005 11:14
Are you resetting npcmove to 0 somewhere?



Xlaydos
20
Years of Service
User Offline
Joined: 26th Mar 2004
Location:
Posted: 23rd Mar 2005 04:33
Lol woops it works now but they follow the same route each time and although there is 20 objects, they only split into 2 groups
walkman99
19
Years of Service
User Offline
Joined: 15th Mar 2005
Location:
Posted: 23rd Mar 2005 06:45
I think you need Randomize at the top of your code.

Login to post a reply

Server time is: 2024-11-13 20:00:34
Your offset time is: 2024-11-13 20:00:34