Mortal Kombat

Game Editor comments and discussion.

Mortal Kombat

Postby supa-tails » Tue Sep 18, 2007 11:38 am

I am making a Mortal Kombat game (a fighting game) and how would I get the person you are going against to randomly attack, move, or jump :?:
Also, for my racing game, how can I make it to where you have a menu and all of the actors are still, but the menu moves, THEN when you press start the cars move(like real traffic) :?:
And I guess that goes the same for the menu for Mortal Kombat too. :D
................................................................................................ www.freewebs.com/thebiverse .....................................................................................




c'ya on the other side
User avatar
supa-tails
 
Posts: 269
Joined: Fri Jul 27, 2007 3:03 pm
Location: In an aliens tummy... Or in cumming Georgia USA
Score: 17 Give a positive score

Re: Mortal Kombat

Postby Kalladdolf » Tue Sep 18, 2007 4:33 pm

Make a variable (attackmode).
Open the script editor for the enemys draw actor (or timer finish) event . Write:
attackmode = rand(3) // ín this case there are 3 attack modes which the enemy can use...
if(attackmode == 1)
{
blabla
}
if(attackmode == 2)
{
blabla
}
if(attackmode == 3)
{
blabla
}

(blabla is the action which you want him to execute)

Now, cars: Make them move with the draw actor event.
Also add this event : Create actor -> Event disable -> draw actor
Then to the menu button: Mouse button down -> event enable -> cars -> draw actor

If this doesn't work the way u want, check out the game demo forum, they got a good demo there about pausing certain actors.
There are more possible ways, but I know these as the easiest ones :D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Mortal Kombat

Postby Bee-Ant » Wed Sep 19, 2007 1:08 pm

Or you can use random timers on create actor
Timer 1 : to punch
Timer 2 : to kick
Timer 3 : to move left
Timer 4 : to move right
Timer 5 : to jump
etc... :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Mortal Kombat

Postby supa-tails » Fri Oct 05, 2007 1:25 am

Thanks, :D also, how would I make it to where you only get hurt by him when he is going through a certain animation, but you dont get hurt when he is just standing there? :| :mrgreen:
................................................................................................ www.freewebs.com/thebiverse .....................................................................................




c'ya on the other side
User avatar
supa-tails
 
Posts: 269
Joined: Fri Jul 27, 2007 3:03 pm
Location: In an aliens tummy... Or in cumming Georgia USA
Score: 17 Give a positive score

Re: Mortal Kombat

Postby Kalladdolf » Fri Oct 05, 2007 9:29 am

make attackmodes for the enemy, and make him play these certain animations while he is using the specific attackmode.

for your player goes: collision -> enemy -> if (en_attackmode == 1)
{//get hurt;}

:D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Mortal Kombat

Postby Bee-Ant » Fri Oct 05, 2007 12:43 pm

Make variables :
1. EnemyAttack (int, global)
2. PlayerBlock (int, actor)
3. PlayerHealth (int, actor)

PLAYER Actor :
On Collision Event with Enemy :
Code: Select all
if(EnemyAttack==1)
{
    if(PlayerBlock==0)
    {
        ChangeAnimation("EventActor", "Hit", FORWARD);
        PlayerHealth--;
    }
}


ENEMY Actor :
On Timer Event "Punch", "Kick", etc :
Code: Select all
EnemyAttack=1;
ChangeAnimation("EventActor", "EnemyPunchLeft", FORWARD); //After Punch timer

On AnimationFinish Event of EnemyPunchLeft :
Code: Select all
ChangeAnimation("EventActor", "EnemyStopLeft", FORWARD);
EnemyAttack=0;


Etc...
Etc...
:D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Mortal Kombat

Postby supa-tails » Mon Oct 08, 2007 1:35 am

THANKS!!! :mrgreen: but I haven't treid it yet BECAUSE... I forgot... :mrgreen: *supa tails tries it now*
................................................................................................ www.freewebs.com/thebiverse .....................................................................................




c'ya on the other side
User avatar
supa-tails
 
Posts: 269
Joined: Fri Jul 27, 2007 3:03 pm
Location: In an aliens tummy... Or in cumming Georgia USA
Score: 17 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron