Page 1 of 2

Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Mon Mar 10, 2008 11:03 pm
by Sgt. Sparky
Here is a demo about how to make bombs, enemies that move and attack you, and how to make health (and display) for your player and enemy. :D
(anti-moonwalk for both on the side.)
The enemy even runs away from the bombs and explosions!
(He also runs back to the right of the map every time he throws a bomb.)

Here are the controls:
LEFT arrow = Move left.
RIGHT arrow = Move right.
UP arrow = Jump.
Space = Throw bomb.
A + SPACE BAR = Throw bomb with a quicker fuse.
S + SPACE BAR = Throw bomb higher higher into the air.
S + A + SPACE BAR = Throw bomb with a quick fuse higher into the air.
:D :D
Enjoy!

This demo is a partial request from Equinox

As for dealing with clones equinox, you can use getclone("actorname.1")->variable == so and so;

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 1:54 am
by pyrometal
Nice work Sparky! Your AI is actually beating me up pretty badly! Also, I looked at the anti moonwalk code you used. Personally, I do it in a very different manner, but hey, whatever works is fine. +1 pt, since I'm sure this will help some people fix their animation bugs.

-- Pyro

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 8:25 am
by equinox
Hi Sparky,

Really a demo done very well.

Now beginning to study him/it. I hope to succeed in understanding some functions in GE.

Thanks still for your gentleness.

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 10:43 am
by Bee-Ant
So...you've dissapeared for long time just to make this demo???
Good demo anyway...+14U :D
And like always...very hard game!!!

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 3:14 pm
by Azou
Cool tutorial,Sergent!!
It's nice,that will help me :P

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 7:27 pm
by edh
Garrrgh! This AI...! :)

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 7:30 pm
by Azou
:?:

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Tue Mar 11, 2008 7:36 pm
by edh
Azou, I just meant the AI is tough. It's hard to kill him.

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 12:40 am
by Sgt. Sparky
The reason the AI is difficult to defeat is mainly because he runs away from the bomb. :D

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 2:04 am
by Caaz Games
that AI is really good, it through a bomb on my head

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 7:39 am
by Bee-Ant
Sgt. Sparky wrote:The reason the AI is difficult to defeat is mainly because he runs away from the bomb. :D

You should make him run away in random... :roll:

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 11:50 am
by Game A Gogo
very nice demo!
you should add like a time reaction to the enemy, would be more realistic a little if ya get what I mean

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 12:28 pm
by moonmoon
it's nice but very hard game!!!

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Wed Mar 12, 2008 5:34 pm
by Azou
edh wrote:Azou, I just meant the AI is tough. It's hard to kill him.

:D
I haven't played it yet,my computer has got again a virus (trojan,I think) :cry:

Re: Bomb/AI coding/Health/anti-moonwalk Demo

PostPosted: Fri Mar 14, 2008 7:34 am
by Bee-Ant
Azou wrote:my computer has got again a virus (trojan,I think) :cry:

Keep your computer carefully...you really careless :| :?