makin a new game and need lots of help

Talk about making games.

makin a new game and need lots of help

Postby deamonslayer4292 » Tue Jun 24, 2008 2:04 pm

ok im startung off easy with anouther side scroller but this time i need my guy to hit the enemy with his sword to kill him instead of his body also i need to no how to change attack animations to the right if ur facing right and left if ur faceing left i could fix this by adding two attack buttons but i want to make it as simple as i can. i have made a background in ms pain but i dont know how to use it as a background i tryed makeing it an actor but it stays in front of my guy so it looks like a moving background i think that would be enough for awhil so if u guys could help thanks
"you take my life and ill take yours to you fire musckets and well run you through and well you wait for the next attack you better stand theres no turning back the smell of acrid smoke and horses breath is the smell of certian death"
User avatar
deamonslayer4292
 
Posts: 24
Joined: Wed May 07, 2008 7:36 pm
Location: MI
Score: 1 Give a positive score

Re: makin a new game and need lots of help

Postby Spidy » Wed Jun 25, 2008 10:26 am

how to change attack animations :
go to ADD=KeyDOWN=choose Attack button=ADD Action=Go to Script Editor
create two variables:
1=player_right
2=player_left

CODE:
if (player_right);
{
changeanimation(playerattackright)
}
if(player_left)
{
changeanimation(playerattackleft
}
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: makin a new game and need lots of help

Postby DST » Wed Jun 25, 2008 2:15 pm

Then expand on spidy's code by putting it all in a case switch for jumping:

switch (canjump)
case 0: //if he's in the air
if (player_right);
{
changeanimation(playerjumpingattackright)
}
if(player_left)
{
changeanimation(playerjumpingattackleft
}
break;

case 1: //on the ground
if (player_right);
{
changeanimation(playerattackright)
}
if(player_left)
{
changeanimation(playerattackleft
}
break;
}
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: makin a new game and need lots of help

Postby Bee-Ant » Wed Jun 25, 2008 3:05 pm

Oh,you remind me with Darkboy.
Well,make some actor variables : right,attack
Player keydown left
Code: Select all
right=0;
if(attack==0){
x-=3;}

Player keydown right
Code: Select all
right=1;
if(attack==0){
x+=3;}

Player keydown to attack
Code: Select all
if(attack==0){
if(right==0){
ChangeAnimation("Event Actor","AttackLeft",FORWARD);}
if(right==1){
ChangeAnimation("Event Actor","AttackRight",FOWARD);}attack=1;}

Player animation finish of AttackRight
Code: Select all
ChangeAnimation("Event Actor","StopRight",FORWARD);
attack=0;

Player animation finish of AttackLeft
Code: Select all
ChangeAnimation("Event Actor","StopLeft",FORWARD);
attack=0;

Enemy collision of player
Code: Select all
if(player.attack==1){
//hit action
}

Good luck :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: makin a new game and need lots of help

Postby deamonslayer4292 » Wed Jun 25, 2008 11:44 pm

thanks darkboy was what i was thinking of when i started
"you take my life and ill take yours to you fire musckets and well run you through and well you wait for the next attack you better stand theres no turning back the smell of acrid smoke and horses breath is the smell of certian death"
User avatar
deamonslayer4292
 
Posts: 24
Joined: Wed May 07, 2008 7:36 pm
Location: MI
Score: 1 Give a positive score

Re: makin a new game and need lots of help

Postby deamonslayer4292 » Wed Jun 25, 2008 11:46 pm

only thing now is the background
any ideas?
"you take my life and ill take yours to you fire musckets and well run you through and well you wait for the next attack you better stand theres no turning back the smell of acrid smoke and horses breath is the smell of certian death"
User avatar
deamonslayer4292
 
Posts: 24
Joined: Wed May 07, 2008 7:36 pm
Location: MI
Score: 1 Give a positive score

Re: makin a new game and need lots of help

Postby Spidy » Sat Jun 28, 2008 5:24 am

deamonslayer4292 wrote:only thing now is the background
any ideas?


Add Actor=(choose name)
Add Animation=choose BG animation
Click on parent box change and choose view.Now your BG animation become Background :D
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: makin a new game and need lots of help

Postby deamonslayer4292 » Sun Jun 29, 2008 1:13 am

yes but my background keeps going in front of my guy
"you take my life and ill take yours to you fire musckets and well run you through and well you wait for the next attack you better stand theres no turning back the smell of acrid smoke and horses breath is the smell of certian death"
User avatar
deamonslayer4292
 
Posts: 24
Joined: Wed May 07, 2008 7:36 pm
Location: MI
Score: 1 Give a positive score

Re: makin a new game and need lots of help

Postby DST » Sun Jun 29, 2008 4:21 am

It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: makin a new game and need lots of help

Postby Spidy » Sun Jun 29, 2008 3:21 pm

deamonslayer4292 wrote:yes but my background keeps going in front of my guy


Change the zdepth of BG.check the pic
Attachments
untitled.PNG
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: makin a new game and need lots of help

Postby deamonslayer4292 » Sun Jun 29, 2008 11:17 pm

hey tahnks i just started messing with the zdepth cuse i dident no wat it did lol thanks alot
"you take my life and ill take yours to you fire musckets and well run you through and well you wait for the next attack you better stand theres no turning back the smell of acrid smoke and horses breath is the smell of certian death"
User avatar
deamonslayer4292
 
Posts: 24
Joined: Wed May 07, 2008 7:36 pm
Location: MI
Score: 1 Give a positive score

Re: makin a new game and need lots of help

Postby Spidy » Mon Jun 30, 2008 5:41 am

no problem DUDE!!
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest