creating a shootout arcade

Started by shayavr, Tue 25/08/2009 15:40:10

Previous topic - Next topic

shayavr

Please advise anyone..
I want to create a shoot out arcade style "operation wolf" (1st person view)

-an enemy character appears
-it begins an animation doing the loop one time (the loop is: enemy point a gun at the player and fire)
-at the end of the loop the player is hit (an X shape object appears at the botton of the screen)
-if the enemy is clicked (interact with..) on during the loop he dies and another appears
-when the player get hits 3 times (3 X`es)-game over

is it possible to do using AGS editor
thanks!!
the dude abides

Matti

I don't understand what your problem is. Just do it the way you described it...


-an enemy character appears

cEnemy.Changeroom(bla); And perhaps cEnemy.Walk(bla);

-it begins an animation doing the loop one time (the loop is: enemy point a gun at the player and fire)

cEnemy.Changeview(bla);cEnemy.Animate(bla);

-at the end of the loop the player is hit (an X shape object appears at the botton of the screen)

Something like:
If (cEnemy.Frame==x)  {hit=true;counter=80;}
If(hit){
 Hitpoints--;
 hit=false;
}

if(counter>0){
 if(counter==80) object[bla].visible=true; // object[bla] being the "X"
 if(counter==1) object[bla].visible=false;
 counter--;
}

-if the enemy is clicked (interact with..) on during the loop he dies and another appears

Just animate a death sequence and make the enemy change the room and let another one or the same appear again...

-when the player get hits 3 times (3 X`es)-game over

if(Hitpoints==0) QuitGame();

shayavr

Quote from: Mr Matti on Tue 25/08/2009 16:08:03
I don't understand what your problem is. Just do it the way you described it...

Something like:
If (cEnemy.Frame==x)  {hit=true;counter=80;}

thanks for the fast reply
my problem is with the scripting
I'm still having problem with the line above
for some reason it is just ignored..
the loop reaches frame X (where the firing occures) but nothing happens no matter what I put in the result brackets (even a simple Display..)

I'm using AGS ver 2.71 maybe this has something to do with it?
the dude abides

Khris

You have to place code like that into repeatedly_execute so it is run all the time.

shayavr

Quote from: KhrisMUC on Wed 26/08/2009 07:34:43
You have to place code like that into repeatedly_execute so it is run all the time.

Thanks a lot!!
:) :) :)
the dude abides

SMF spam blocked by CleanTalk