The Daily Click ::. Forums ::. Klik Coding Help ::. HELP! Required with TGF AI
 

Post Reply  Post Oekaki 
 

Posted By Message

Heart Break Kid



Registered
  13/05/2003
Points
  1754
8th September, 2006 at 14:58:19 -

Its the right forum for it

I need some help programming AI in TGF.. AI are startrek ships in a top down scroller and just want them to keep moving in random directions and make proper turns after sometime to stick around the player object.

I have demonstrated an example with the black object as an enemy and grey one as the player, its done through path movement so its not very accurate

http://bond.sitesled.com/Game1.gam

If you want some details then just post them here and please help A.S.A.P.

To keep stuff short & basically general, i just want two objects moving randomly but within each other's range and changing directions and positions correctly. Thats it, now any fine programmer can do that ( and i'am certainly not one of them )

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
8th September, 2006 at 18:09:08 -

Dude, take the criticism; don't wipe out your previous post just cause ppl told you you can't code anything yourself. From your questions, it's completely obvious. Go search through tutorials, or (Shocks!) try something yourself. If it doesn't work, try again, and again, and again.

Something like this is pretty easy to do; you just have to think about it instead of begging people to help you in a childish manner.

Learn Romero's lesson, you can only get so far using others reputation/code before everyone realizes you're a joke.

 
Craps, I'm an old man!

Heart Break Kid



Registered
  13/05/2003
Points
  1754
8th September, 2006 at 23:08:08 -

i removed my post coz it was in the wrong section

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Deleted User
9th September, 2006 at 01:21:13 -

Use a vaule for time and always subtract it if it's not equal to 0 then once it hits zero make the object bounce.. or if you're using custom 8-way movement randomize the counter or vaule as it's postion movement.

 

Heart Break Kid



Registered
  13/05/2003
Points
  1754
9th September, 2006 at 12:19:07 -

First of all, thanks for helping the bunny getting world domination lolx .. then secondly, can you create an example file? that'll make a lot easier to apply what you just said ( if it'll actually work practically )

thanks

Image Edited by the Author.

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
9th September, 2006 at 12:24:23 -

DUDE! Use your brain! That is the simplest thing ever, and here you are asking for someone else to do it for you!

That's sad, like really, really sad.

Maybe you should stick to built in platform games.

 
Craps, I'm an old man!

Heart Break Kid



Registered
  13/05/2003
Points
  1754
9th September, 2006 at 12:57:50 -

SURE! i used it, but the resulting product was lagging on your PC.. remember?

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
9th September, 2006 at 13:34:27 -

If that's the case how come you can't do something this simple on your own?

 
Craps, I'm an old man!

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
9th September, 2006 at 16:18:01 -

Lagging for something so simple? What, did you use huge active objects as counters or something?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Heart Break Kid



Registered
  13/05/2003
Points
  1754
9th September, 2006 at 22:40:27 -

No i just used active objects instead of frames for animation

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

Deleted User
11th September, 2006 at 02:18:45 -

Oh, so you used time for the object to be deleted then you made it create another animation over the active object then so on..?

 

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
11th September, 2006 at 02:27:22 -

...what?

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Deleted User
11th September, 2006 at 02:29:50 -

Okay.. this is confusing..

 

Heart Break Kid



Registered
  13/05/2003
Points
  1754
12th September, 2006 at 13:43:48 -

I'am still looking for those..

 
(\__/)
(='.'=This is Bunny. Copy and paste Bunny into ur
(")_(")signature to help him gain world domination.

Klik with the kid!

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
12th September, 2006 at 16:14:32 -

There's a tutorial about "moving randomly but following the player when coming close" somewhere. Look it up.

 
Old member (~2004-2007).
   

Post Reply



 



Advertisement

Worth A Click