How would i create a fighting scene

Started by deltoran, Wed 14/01/2009 02:51:34

Previous topic - Next topic

deltoran

I need to make a scene where my guy has to attack a ghost and have a fight.
and if possable i would like to make there be more than one ghost.  :)
Dont believe the dreams
Ever lasting dreams
Live or let die
The truth is shy
Over the hills
Run through the stream
And you can stand it
No more

Akatosh

Yep, it's definitly possible, and you can have as many ghosts as you like (although it tends to get unreasonable in the four-digit area  :P). The actual scripting depends on what you want the fight to be like (round-based, actiony, tactical, just a clickfest, ...) so some more information would be nice.

Khris

Also, creating even a basic combat system requires relatively advanced scripting and programming abilities in general.
You'll be better off getting a firm grip of the editor's and scripting language's basics first.

Otherwise this thread will soon turn into a "do X" - "ok, but Y doesn't work" - "then do Z" - "ok, but XY doesn't work" - fest.

I understand that you have this game idea and now want fast results to concentrate on design, but unless you enlist an able coder, you'll really have to bite your way through the scripting stuff first.

Dualnames

It's actually virtually impossible to go building a Skyscraper without knowing how to build a house.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Akatosh

Quote from: KhrisMUC on Wed 14/01/2009 12:02:05
Also, creating even a basic combat system requires relatively advanced scripting and programming abilities in general.

Actually, you could set up a crude, shitty little clickfest combat easily enough...


Top of the global script:
Code: ags

int playerHP=100, enemyHP=100;
bool combat;


repeatedly_execute():
Code: ags

if ((IsTimerExpired(1))&&(combat==true)) {
playerHP-=Random(5);
if (playerHP<=0) {Display("lozer!!1!"); QuitGame(0);}
else SetTimer(1, 10);}


That enemy character's interaction:
Code: ags

// script for Character 3 (Ghost): Any click on character
if (mouse.Mode==eModeAttack) {
enemyHP-=Random(5);
if (combat==false) {combat=true; SetTimer(1,10);}
if (enemyHP<=0) {Display("you winz!!!1"); cGhost.ChangeRoom(-1); combat=false; playerHP=100; enemyHP=100;}
}


... but if you want to to actually be FUN, then yeah, get some more experience first.

SMF spam blocked by CleanTalk