Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Multiple items on the screen

Status
Not open for further replies.

markh999

Programmer
Aug 4, 2003
10
GB
I want to develop a simultaion game where I will build a city (for example) from scratch. As I create buildings and people arrive, what is the best way for DarkBasic to handle the movement and general control of each of the individual items (people, buildings) moving around the screen. I know this is easier in C++ but not sure how easy it is in DarkBasic.
 
you can use dim() command for individual control
for example
dim position(nrofpeople,2)
--->here is position(1,1) for example the position on the x-axis of object id nr1, and position(18,2) is for example the position on the y-axis of object id nr18...

for the AI, you could use functions...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top