Need help making a beat'em up. (like Double Dragon, etc.)

For questions about using Classic.

Post » Tue May 05, 2009 10:59 am

Hi I am new here and I would like say this is a great tool you guys have made.
Like the title says I am making a Beat'em up game and I need you guys Help.
I started using Construct For days ago. I did the Ghost shooter tutorial. I downloaded the platform school tutorials and looked at them. show now I got a good understanding of how Construct works. I already have most of the physic for the beat'em up test game working.
I just need help with 2 problems.

1) When I rapidly press the jump button (the Z key) the player jumps keeps on jumping higher
on top of the last jump. Is there a way to stop that so the player only jump once?

2) Yhe next problem has to do with the shadow of the player.
The shadow Keep the point of origin (Like In Double Dragon, Streets Of Rage, Final Fight, Golden Axe 3, etc.) of for the player in the beat'em up game so, the player don't fall through the bottom of the screen. So my problem is when the player jumps in to the air the shadow is to slow. I shed up the shadow speed bur, now when The player turn In the air the Shadow is to fast. How can I give the Player and the shadow to move at the same rate of speed?

Here a link to the .cap file to show what I have done so far.

[quote:2dpgefbi][url:2dpgefbi]http://download291.mediafire.com/t4l1ndxj23cg/l2lm1yllomq/beatemup+test5.cap[/url:2dpgefbi][/quote:2dpgefbi]
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Tue May 05, 2009 12:33 pm

Work on your logic! For example, use a variable called "is_jumping" that is set to 1 during the jump and 0 when standing. Now, when you press z, you also check if "is_jumping" equals 0. That way, you can only jump when you stand.
This is just an idea, I suggest getting more familiar with coding methods.
B
2
S
1
G
4
Posts: 33
Reputation: 1,266

Post » Tue May 05, 2009 1:40 pm

I tried doing that before I posted the topic. but may be I am doing it wrong. If It is possible can You post some pictures to show how you would do it.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Tue May 05, 2009 1:59 pm

Well I'm pretty sure you are overcomplicating things here.

Since I never tried a classic scrolling Beat'Em Up myself so far, I'm not entirely sure how I'd approach it. But not sure about the combination of 8 direction and Platform behavior.

Anyway, I tweaked it a little bit. I used a PV on the sprite to store the last Y position when jumping. I also made use of your Jump global, you could use a PV for this too though.

Just have a look: Tweaked Cap
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Tue May 05, 2009 9:30 pm

I wanna do a Beat-em-up too, I'll have a look later today when I'm home at the gamedev box :P
just saying so I won't forget!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Wed May 06, 2009 1:35 am

I was Doing the variables wrong. I figure out how to go it right.
Now when the player jump he land on the shadow before jumping again.
All that is left is the shadow movement problem.

PixelRebirth I will look at your tweaked.cap file and get back to you.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Wed May 06, 2009 3:22 am

It never ocurred to me to do it this way XD you can use the shadow to check for floor-plane collisions and the player sprite for height collision
nice!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Wed May 06, 2009 4:49 am

PixelRebirth I see that you took out of the Event Sheet Editor all the shadow bottom sprite (which was the point origin that the player was to go to) but, when you did that the the jump gets messed up somewhat. Let me explain, If you were to move the player to the bottom of the screen and jump when you landed the player would get stuck at that bottom and would not be able to move.
It would only be able to jump. I had that same problem that why I put the shadow bottom sprite in to keep that from happening.

so, when the player is falling event you took out "spirte overlops shadow bottom" event line
and put in "sprite: Y reater or equal sprite.value ('lastY')" event line this caused jump to mess up when the player at the bottom.

I also saw that you fix My second problem of the shadow movement. Thank, I tried doing it that way but I couldn't get it to work. And you also got the player to stay facing the same way when jumping so, thank again for that.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Fri May 08, 2009 10:12 am

Okay, I tweaked the Jumping system and got it to where I wanted it to be.
Now I am moving on to how the player will interact with the stage.
Right away I ran into a problem with collisions between the player and walls.
I looked for answers to my problem in the forums but didn't find anything of use.

So here is my problem. When my player walks up to a certain point ("which is a wall") I don't want the payer to pass it. But I still want the player to jump past that point.

Here I got to Pictures From the game Streets Of Rage 2 to show what I am talking about.





The black line In the pictures show the point where the player ("Skate") can't pass through when walking but, when the player jumps he is clearly passing the line.

Dose anyone have a clue as to how to do this.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Fri May 08, 2009 10:25 am

From what I see, you actually move the shadow, so you just make sure the shadow doesn't move past the black line. The character himself is just there for visual tricks.

That's what I'm guessing.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests