Jump to content


Photo

Advanced Platform Shooter AI (Ragdoll Update)


  • Please log in to reply
103 replies to this topic

#1 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 17 December 2007 - 06:57 PM

Platform Shooter and AI engine


:thumbsup: Tutorial Description
After seeing countless people asking about this in the novice Q&A I decided I would make one. Probaly the most complete platform engine on the GMC. Also contains a fully working platform shooter engine.

This engine has been through many version and has really evolved over the past few years, and it has been years (started 2008). As a result of this evolution, old code artifacts from earlier versions are still in this game. So from time to time, you may come across some redundant objects or pieces of code. Also different styles of coding are present, mainly due to my own development.

I have recently update the engine again (15/09/2011) This adds many cool features, ragdoll and physics using the GMphysic's EXT which I have included in the new download. The GM physic's EXT is pretty limited, but it eliminates the need for DLL's, something I haven't learned to use yet.

I want to put the history of the engine in, so this is the earliest version I can find:
Download old Version 1
I actually prefer the way the AI works in this version, even though it's simpler, it feels more tidy. Also the melee attack was cool.

old Platform Shooter
This was a platform shooter engine I made. This engine was born when I decided to merge the 2 engines together.

The controls are:
WASD to move.
Left click to shoot.
Mouse wheel to cycle weapons.
Right mouse to throw grenades, hold down to build up more power.
Q adds a silencer to your gun (Dunno why this is in there, it does not affect gun stats).
Space goes in to a slow mo thing (I think I was playing Red Dead).
R restarts the game.

:whistle: Features Include:
  • 2 Different AI's
  • A friendly and an enemy
  • Patrol
  • Has line of sight
  • Metal gear style explanation mark !
  • Dodge things
  • Grenades
  • Also has cool partical effects
  • Has a platform shooter engine as well with lots of features
  • Ragdolls!
Also contains a pretty solid platform engine witch supports slopes, and includes a variety of easy to customize weapons and effects.

File Type - GMK
Game Maker version - GM.7 registered

::lmao:: Screens:

Posted Image

(This is actually 4 screenshot's combined in Photoshop!)

:wub: Download:

New:
Download platform shooter.zip from Host-A

Old:
Download platform_shooter.gmk from Host-A

:happy: Other Stuff
Sprites are now for use.
You need to install the GMphysics EXT, you do this by clicking 'Extension packages' at the bottom of the resources list. The GMphysics EXT is included in the new download link.

Programmed, Designed and Created By:
Crispy

With help from:
Paingiver
DarkSentinel
Ogeon
Mark13673
Spliter
FoxInABox
Obj_Control
Marinerfan
Arkano

Thanks to:
Mordi for some of the partical effects & instant bullets.
Krizto for the blood splatter sprites and some of the effects.
Torigara for shooting out of the tip of a gun.
zzKITKATz for the basic following example
RhysAndrews for GameCave effects and sprites
Quimp for movment tips

Sprites By:
Crispy

If you see your name here, but don't know why, you probably inadvertently gave me some code.

Enjoy

-Crispy

Edited by Crispy, 19 September 2011 - 07:24 PM.

  • 2

#2 kristian221

kristian221

    GMC Member

  • New Member
  • 650 posts

Posted 19 December 2007 - 03:25 AM

no offence, but the AI wont aim at you unless your exactly even with him. But I think the moving on uneven ground is great! :P 5/10
  • 0

#3 MapleGuru

MapleGuru

    GMC Member

  • New Member
  • 271 posts

Posted 19 December 2007 - 07:09 AM

Simple, but works great. Good Job buddy 10/10
  • 0

#4 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 19 December 2007 - 05:26 PM

Ok got rid of the shooting up thing. Instead he jumps over things.
-Crispy
  • 0

#5 jabelar

jabelar

    GMC Member

  • New Member
  • 2980 posts

Posted 19 December 2007 - 09:55 PM

You dont need registered for it.

<{POST_SNAPBACK}>

You do need registered, because it uses image_angle.
  • 0

#6 emporer_safor

emporer_safor

    Galaxy Games

  • New Member
  • 669 posts

Posted 21 December 2007 - 02:16 AM

Very cool indeed! 10/10. No problems. I find that this is great for beginers (who have Pro)
  • 0

#7 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 21 December 2007 - 12:32 PM

Yes, in bullets step event. if you take it out it may work for unregistered to.
  • 0

#8 ravener

ravener

    SG menace

  • New Member
  • 965 posts

Posted 06 February 2008 - 03:23 PM

This is a great AI example 10/10 if you are going to make a new version make it so the AI has a gun arm that points toward the player!!
  • 0

#9 SunTzus

SunTzus

    Ying Yang Twinz

  • New Member
  • 1047 posts

Posted 06 February 2008 - 10:48 PM

This isn't that hard to program, but it was functional, 7/10

Btw: only function it uses that's registered is image_angle= direction, whichis easy to implement to unregistered...

Maybe you should make it a bit more intricate like it being able aim at you w/o jumping by aiming DIRECTLY at you, it's extremely simple but it will help it loadz
  • 0

#10 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 22 February 2008 - 05:32 PM

added AI sight line, and things that block the sight line. fixed a few gliches.
  • 0

#11 MJGamesInc

MJGamesInc

    GMC Member

  • New Member
  • 365 posts

Posted 13 March 2008 - 05:47 PM

hey man can you make this so he can aim up and shoot if your jumping high over him and up on a roof or somthing???? please great help but thats the onlhy prob. i have LOL
  • 0

#12 joshuarobillos

joshuarobillos

    GMC Member

  • New Member
  • 186 posts

Posted 13 March 2008 - 09:02 PM

This sounds great but can you make one for non pro users?
  • 0

#13 Ziphe

Ziphe

    GMC Member

  • New Member
  • 101 posts

Posted 27 April 2008 - 11:29 PM

How do i make it so it shoots diagonally, I already have sprites for it also i have it so the bullets shoot were im at but dont follow me
  • 0

#14 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 17 October 2008 - 10:01 PM

Updated, see first post.
  • 0

#15 blaketheawesomedude

blaketheawesomedude

    GMC Member

  • New Member
  • 295 posts

Posted 18 October 2008 - 05:19 AM

Please make an unreg version.
  • 0

#16 Hyper Break

Hyper Break

    GMC Member

  • New Member
  • 25 posts

Posted 18 October 2008 - 05:59 AM

can you make this .gm6 ?
  • 0

#17 Fede-lasse

Fede-lasse

    AI Programmer

  • GMC Member
  • 2009 posts
  • Version:Unknown

Posted 18 October 2008 - 09:05 AM

This is all glitchy; the player character turns upside down sometimes, the movement is glitchy, changing sprites is glitchy and the torso sprite of the AI is totally weird.

Except for that, it's good, I guess.
  • 0

#18 Hyper Break

Hyper Break

    GMC Member

  • New Member
  • 25 posts

Posted 18 October 2008 - 12:12 PM

broken link :) (the new one)
  • 0

#19 Crispy

Crispy

    Black Sun Empire

  • GMC Member
  • 1200 posts
  • Version:GM8

Posted 18 October 2008 - 12:25 PM

Fixed the broken Link, fixed some bugs, added smoother movement. Working on having multipul enemys in the same room and not to shoot each other (harder than it sounds)
  • 0

#20 harddrive

harddrive

    GMC Member

  • New Member
  • 2 posts

Posted 13 November 2008 - 10:11 PM

Hey guys!

If you want to add a sound for a weapon, what do you do?
And how do you make the sound play when the weapon fires?

What do i write in the script, etc.?

Please answer!
I'm quite a noob at GM so I need detailed instructions.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users