The Daily Click ::. Forums ::. Klik Coding Help ::. Ball A.I Movement?
 

Post Reply  Post Oekaki 
 

Posted By Message

KanoBlade



Registered
  01/02/2003
Points
  50
19th November, 2003 at 15:59:05 -

Sorry about this, but I am in desperate need of Non-waypoint random A.I. movement.

 
:|

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
19th November, 2003 at 16:20:08 -

You're going to have to be more specific than that I doubt anyone's going to just give out something that is as complex to create as AI.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

KanoBlade



Registered
  01/02/2003
Points
  50
19th November, 2003 at 21:52:39 -

Ok, i'll try.

I just want it to move around, every millisecond it switches directions and every 2 seconds it pauses, 2 seconds after that it repeats.

I just need a very basic random movement because i can't seem to create one.

If you've played Swords of Mana for GBA then the Monsters movement is the exact one i need..

THX in advanced

 
:|

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
19th November, 2003 at 23:19:50 -

I don't see what you're having trouble with. You've basically laid out exactly what you're wanting to do. If your problem is the timing, try using flags to denote where it's up to in its movement, IE:

If flag0 is off, every 00:00:01, [change direction however you want].

If flag0 is off, every 00:02:00, [set flag0 on]

If flag0 is on, every 00:02:00, [set flag0 off]

 
n/a

Andy G



Registered
  07/07/2002
Points
  860
20th November, 2003 at 00:08:22 -

If it changes direction every millisecond...that might be a little fast, pal.

 
Beach Invasion II will come out if you are lucky.

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
20th November, 2003 at 01:48:28 -

so change the interval then.......

 
n/a

KanoBlade



Registered
  01/02/2003
Points
  50
20th November, 2003 at 06:44:52 -

? Flags ? dunno how to use them.

is it, damn. The way i set it up he turns in all directions so he basically doesn't move.. lol

BTW, is the Flag Movement Random?

 
:|

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
20th November, 2003 at 22:50:51 -

I was thinking that. You might be better off decreasing the interval, and instead of just aiming randomly, try making it look in the direction of the main character then adding (RND[6] - 3) or something to the direction.

 
n/a

KanoBlade



Registered
  01/02/2003
Points
  50
21st November, 2003 at 06:47:51 -

i'm not sure, but is that for 4 directional movement?

 
:|
   

Post Reply



 



Advertisement

Worth A Click