Jump to content


Photo

Trying To Make A Side Scrolling Beat 'em Up! Help?


  • This topic is locked This topic is locked
15 replies to this topic

#1 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 13 April 2008 - 09:30 PM

Hi, Im remy-kun13. Im a super (noob) to the gmc site, But Ive had game maker for a little while now, And Ive been trying to make a 2-d, sidescrolling beat em up game. Ive watched tutorial, after tutorial, But Ive always ended up short. Im slow on the code stuff, so Ive been using drag-and-drop. I just dont know where to start! I have the sprites, and backgrounds, and all that...Im just so..lost. Please help! I will credit all those who help! Thank you.
  • 0

#2 Hector

Hector

    GMC Member

  • New Member
  • 67 posts

Posted 13 April 2008 - 09:41 PM

Go through the Platform Tutorial YoyoGames provides.

I'm starting my own small game/project too, it's also a side-scrolling beat'em'up. So far, it helped work the basic engine out.
Any other quirks, I'm sure we can solve them.
  • 0

#3 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 13 April 2008 - 11:31 PM

Go through the Platform Tutorial YoyoGames provides.

I'm starting my own small game/project too, it's also a side-scrolling beat'em'up. So far, it helped work the basic engine out.
Any other quirks, I'm sure we can solve them.


Thank you, Im going to try that, but im still looking for specific help, like what do I do first, and what codes to put in and stuff like that.
  • 0

#4 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 13 April 2008 - 11:32 PM

Please, can anyone help?

Edited by remy-kun13, 13 April 2008 - 11:33 PM.

  • 0

#5 Hector

Hector

    GMC Member

  • New Member
  • 67 posts

Posted 13 April 2008 - 11:34 PM

Don't bump your topic up/double post!

Just follow the tutorial first to get a hang of making that sort of games. Let us know if you have trouble -after- doing that.

Edited by Hector, 13 April 2008 - 11:35 PM.

  • 0

#6 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 14 April 2008 - 07:45 PM

Alright, I did the platform tutorial and it was great!
Now I got a player that moves left to right, and jumps when I press space! Now I need help on this, I want the player to punch when I press X, but when I tried to put in the steps and play it, it just came out as the player rapidly punching without me pressing anything. Ive tried to put in the steps over again but it still does the same thing! I just dont know what to do! And how do I change the animtion speed on the sprite? Thanks for the help so far!
  • 0

#7 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 14 April 2008 - 09:55 PM

Why isn't any one helping me? Please!
  • 0

#8 sadfib

sadfib

    GMC Member

  • New Member
  • 1034 posts

Posted 15 April 2008 - 12:24 AM

have a punching sprite. then do this (you'll probably have to edit a bit)

create event
punch=true

key press x (punch)
if punch=true
{
punch=false
sprite_index=<punching sprite name>
alarm[0]=<change so that it does the alarm at the end of the punch animation>
image_speed=<this is the speed of the animation>
}

alarm[0] event
punch=true


animation end event
if sprite_index=<punching left sprite>{sprite_index=<standing left sprite>}
if sprite_index=<punching right sprite>{sprite_index=<standing right sprite>}

  • 0

#9 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 15 April 2008 - 04:22 PM

Wow, thanks I am going to get right on it, and I will tell you If anythings up!! Thanks again!
  • 0

#10 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 17 April 2008 - 12:08 AM

Wow, thanks I am going to get right on it, and I will tell you If anythings up!! Thanks again!


It Worked! Thanks! Now I want to add scores and healths. What do I do now?
Plase post some code thank you!

Edited by remy-kun13, 17 April 2008 - 01:10 AM.

  • 0

#11 metalfreak25

metalfreak25

    GMC Member

  • New Member
  • 125 posts

Posted 17 April 2008 - 01:30 AM

code isnt REALLY necessary for score and health, there r Drag and Drop functions that do that for you! look in some of the other tutoials like the "your first game" one and such
  • 0

#12 sadfib

sadfib

    GMC Member

  • New Member
  • 1034 posts

Posted 17 April 2008 - 01:48 AM

well score you'd do something like this.

create event
score=0
this just makes a variable called score

now, put this in the enemy destroy event. this means the code will only execute when you destroy the enemy object.

<player_object>.score+=<score amount>
//ex: obj_player.score+=5

this makes the score go up by a set amount
ex:
if the score=5,score+=3 makes score=8 simple math.

you always have to draw your sprite if your using the draw function (kinda stupid if you ask me)

in the player draw event

switch(sprite_index)
{
case <player standing left sprite>:
draw_sprite(<player standing left sprite> ,-1,x,y);
}

{
case <player standing right sprite>:
draw_sprite(<player standing right sprite> ,-1,x,y);
}

{
case <player walking left sprite>:
draw_sprite(<player walking left sprite> ,-1,x,y);
}

{
case <player walking right sprite>:
draw_sprite(<player walking right sprite> ,-1,x,y);
}
//continue in this fashion for all your sprites
if your using image xscale you'll need pro i think with the draw_sprite_ext() function

draw_text(view_xview+<were ever you want it to be>,view_yview+<were ever you want it to be>, string(score))

this will draw your player and your score. the score will follow the view now


for health,

create event
hp=100

collision with bullet or fist or whatever
hp-=<desired amount>

then in the draw event
draw_healthbar(<use view_(x,y)view for the x1,y1,x2,y2, for amount type hp and read about the rest in the manual>)

think thats all
  • 0

#13 remy-kun13

remy-kun13

    GMC Member

  • New Member
  • 8 posts

Posted 17 April 2008 - 07:38 PM

wow thanks sadfib! Im sooo crediting you when I done! Im going to check these and see if they have any problems! Thanks again!
  • 0

#14 LegoGuy24

LegoGuy24

    GMC Member

  • GMC Member
  • 9 posts

Posted 16 July 2011 - 07:12 PM

Hey I just saw your topic and I will check it out when I will make a beat 'em up but I have 2 problems:

How can I make charachter changing thingy?
How can I make new move window while playing?

Oh and thanks you made this topic I will so credit you when I succed! (using :GM8_new: )

Edited by LegoGuy24, 16 July 2011 - 07:13 PM.

  • 0

#15 X920MikeyB

X920MikeyB

    GMC Member

  • New Member
  • 26 posts

Posted 16 July 2011 - 08:12 PM

See this has already been answered :P was interesting to read: But, I suggest you read the forum rules on bumping, double posting etc. :P You double posted within 2 hours of your previous post asking why anyone wasn't helping. There's an edit button :)

I'm new to GM too and I understand how it is waiting for stuff, but just chill out for a bit, focus on a different project, or something else, or go do some tutorials or something else whilsts you wait :)

Regards,

Mike.

Edit: Typo's

Edited by X920MikeyB, 16 July 2011 - 08:12 PM.

  • 0

#16 paul23

paul23

    GMC Member

  • Global Moderators
  • 3680 posts
  • Version:GM:Studio

Posted 17 July 2011 - 08:38 PM

While it is good to search the forums, bumping a 3 year old topic, as said, serves nobody.

If you have questions in such a case make your own topic, you're more likely to get answers.. And prevent me from closing topics :P.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users