Random movement of character within an area??

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Haze
Posts: 4
Joined: Mon Oct 10, 2005 8:34 am
Location: Singapore

Random movement of character within an area??

Post by Haze »

Anyone can tell me what should I do to make my character move randomly within a specifed area?

Thanks!!
Haze Poh
dhenton9000
Posts: 395
Joined: Fri Apr 08, 2005 8:46 pm

Post by dhenton9000 »

Waypoints and planned walks are a possibility. If you have locations predetermined you can build a data structure that represents a walk around the area a1->a2-a3. Its used for patrolling O'reillys AI for Game Developers covers that and a number of other methods.

I have a working project usng newton where my characters walk an area guided by a bitmap, if you want to look at that.
Post Reply