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 / Make enemy move

Author
Message
Salsa
20
Years of Service
User Offline
Joined: 21st Sep 2003
Location:
Posted: 21st Sep 2003 21:32
How do i make the enemy move on the matrix?
It's quite weird understanding it.

Can anyone help??
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 22nd Sep 2003 01:41
DO
MOVE OBJECT 2,1
LOOP

"Begin at the beginning, and go on till you come to the end: then stop." - Lewis Carroll
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 22nd Sep 2003 21:31
jup, you could move it that way, but what ya need is Atrificial Intelligence to make it move and react on it's own

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
zzabb
21
Years of Service
User Offline
Joined: 25th Apr 2003
Location: Seattle, USA
Posted: 23rd Sep 2003 02:09 Edited at: 23rd Sep 2003 02:15
give it some if statements like
psuedocode

if myobject < monster position(for both x and z) + distance
point monster, myobject position
move monster,distance
endif

but basically the monster moves in the main loop

think about being your monster and what code it would take to move him toward your character

if objects are in the way, what will your monster do, how to move around them
maybe to duck if you shoot at him or a bullet is close to him
but keep it simple until you get him movin around

My advice is free -
unfortunately you get what you pay for (-:

Login to post a reply

Server time is: 2024-09-21 01:07:58
Your offset time is: 2024-09-21 01:07:58