Jump to content


Photo

Top-down Shooter Ai


  • Please log in to reply
34 replies to this topic

#21 why789

why789

    GMC Member

  • New Member
  • 518 posts

Posted 08 April 2010 - 07:38 PM

i used his AI in one of my games :D search for territory killer on yoyogames.... username is why789
  • 1

#22 Xalrons444

Xalrons444

    GMC Member

  • New Member
  • 588 posts

Posted 30 May 2010 - 10:18 AM

I've adapted it so that there are four different weapons and the health shows.
Posted Image
There are currently four weapons:
pistol
SMG
Assault rifle
Sniper rifle

The AI treats them all the same apart from the sniper rifle. The AI never rushes while using the sniper rifle

Edited by Xalrons444, 30 May 2010 - 10:25 AM.

  • 0

#23 CaptainLepidus

CaptainLepidus

    GMC Member

  • GMC Member
  • 850 posts
  • Version:GM:HTML5

Posted 01 June 2010 - 11:20 PM

Umm...ok? That post wasn't really helpful, just letting you know :unsure:
  • 0

#24 Xalrons444

Xalrons444

    GMC Member

  • New Member
  • 588 posts

Posted 02 June 2010 - 08:19 AM

Sorry.

Edit: Now something useful. I have made three changes
1. I have improved the AI itself maiking it better at choosing targets. i.e. if the nearest enemy is through a wall but the second nearest is in plain view. It will now choose the second nearest enemy as its target.

2. I have created a much better spawning system which does do two things
-allows you to edit the spawing area in the room editor
-tries to make you spawn behind cover, far away from the nearest enemy. Spawn killing used to be common.

3. Improved the HUD. The player's health bar and weapon are now displayed on the HUD.

Edit2: I have improved the AI again. I often found, while playing, that I would be standing behind an enemy firing at it while it ignored me and concentrated on one of my allies. Now I have changed it so that if there is an enemy that is very close and in it's line of sight, it will switch target to it. I am now almost ready to release my editted version of the AI.

Edit3: Ihave sent this editted version Turgon and it is available for donwload from the first post.

Edited by Xalrons444, 06 June 2010 - 05:48 PM.

  • 0

#25 Xalrons444

Xalrons444

    GMC Member

  • New Member
  • 588 posts

Posted 09 July 2010 - 09:05 PM

I have started to make a game called Space Ops from my editted version of this AI. Here is a link to it on Yoyo Games and here's one to the GMC topic.

Edited by Xalrons444, 10 July 2010 - 08:24 AM.

  • 0

#26 StashAugustine

StashAugustine

    GMC Member

  • New Member
  • 8 posts

Posted 01 December 2010 - 03:24 AM

The AI works pretty well. Good job!

I modified it with some vision abilities, so that it can only attack you when it sees you. But there are problems with the mp_grid. It doesn't like changing paths.
As an example, the enemies home in on my last known position, but if they don't see me they then stand still, rather than go back to their old routine. Do you know why this is?

Also, I can't figure out how the cover system works. But the AI is still great. Thanks for putting this up.
  • 0

#27 Sir

Sir

    Jedi Poodoo

  • GMC Member
  • 383 posts
  • Version:GM:Studio

Posted 21 December 2011 - 05:27 PM

Ok, sorry for necro'ing a dead topic, but i found this and i would like to use it, but when i put it in my game, it gives these 2 errors...


ERROR in
action number 1
of Step Event
for object obj_military_2:

In script vp_tds_ai:
Illegal argument count calling script "vp_tds_ai_grid_walk".
Script requires 3 arguments, 4 have been supplied.

___________________________________________
ERROR in
action number 1
of Step Event
for object obj_military_2:

In script vp_tds_ai:
Error in code at line 111:
normal_cover_x=cover.x+(grid_size/2)+lengthdir_x(i,strategic_direction);
^
at position 31: Unknown variable x

I can fix the unkown var x by simply deleting the .x in the cover.x, and the .y in the cover.y (hope i don't break anything...) but i am not sure how to get past the top error... Any help? And once again, sorry for necro'ing this topic

Also, I am using GM 8.1

Edited by SirGuy, 21 December 2011 - 05:47 PM.

  • 0

#28 The Legend

The Legend

    A Jesus Freak

  • GMC Member
  • 1052 posts
  • Version:GM:Studio

Posted 20 March 2012 - 09:18 PM

B-E-A UTIFUL!
EDIT: Spoke too soon. This is trash. Cold be awesome but in order to really get this to work you need an understanding of the script itself. I will attempt to do so and remake this script (if I can) Though I might not even study the script and just try it myself. I'm glad it works for you guys though. Wis I could say the same...

Edited by The Legend, 24 March 2012 - 04:28 PM.

  • 0

#29 ionasskopelitis

ionasskopelitis

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 09 November 2012 - 06:32 AM

its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
  • 0

#30 ionasskopelitis

ionasskopelitis

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 09 November 2012 - 06:32 AM

its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
  • 0

#31 ionasskopelitis

ionasskopelitis

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 09 November 2012 - 06:32 AM

its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
  • 0

#32 ionasskopelitis

ionasskopelitis

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 09 November 2012 - 06:32 AM

its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.
  • 0

#33 Greenhawk911

Greenhawk911

    SHS Drumline

  • GMC Member
  • 465 posts
  • Version:GM:Studio

Posted 10 November 2012 - 12:23 PM

its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.

bro you just spam quadrouple posted. you can't do that. for most reasons moderator. could lock this topic whih would be bad because people use this a lot and need to ask questions about his script. :ninja:

also..
Same with sirguy i get the same error.
AWESOME JOB ON THE SCRIPT BY THE WAY TURGON! :biggrin:

Edited by Greenhawk911, 10 November 2012 - 12:24 PM.

  • 0

#34 ionasskopelitis

ionasskopelitis

    GMC Member

  • GMC Member
  • 14 posts
  • Version:GM8

Posted 24 November 2012 - 07:26 AM


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.


its not working in gm html5 whell it shoots but the only thing it does is shoot and when i take cover it stops shooting, but it doesnt move it just stays there.

bro you just spam quadrouple posted. you can't do that. for most reasons moderator. could lock this topic whih would be bad because people use this a lot and need to ask questions about his script. :ninja:/>

also..
Same with sirguy i get the same error.
AWESOME JOB ON THE SCRIPT BY THE WAY TURGON! :biggrin:/>


i'm sorry by computer bugged at that moment so i didnt know if it was posted so i refreshed the page like four times and it got posted 4 times im sorry.
  • 0

#35 Darc_Wolf

Darc_Wolf

    GMC Member

  • GMC Member
  • 3 posts
  • Version:GM8

Posted 24 January 2013 - 11:46 PM

I deleted all objects in the room, added some walls, tiles, the enemy object, the player object, and the obj_control, but when I start the game, I get this error:


___________________________________________
ERROR in
action number 1
of Step Event
for object obj_opponent:

In script vp_tds_ai:
Error in code at line 111:
normal_cover_x=cover.x+(grid_size/2)+lengthdir_x(i,strategic_direction);
^
at position 31: Unknown variable x


Sorry for the bump, but I really would like to use this. I'm using GM8.1 Pro.

Edited by Darc_Wolf, 24 January 2013 - 11:48 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users