I need help immediately! Street-Fighter Style Game!

Get help using Construct 2

Post » Sat May 23, 2015 8:16 am

so... i ran into some problems when one of my combatants couldn't punch or kick when overlapping the enemy combatant. Can someone give me and edited version of my game?
how can i attach files btw? im not allowed to post links.
***.dropbox. ***/s/g0o9sxsd7op13wb/Dead%20or%20Alive.capx?dl=0

replace the first *** with www and the second one with com
Last edited by Construct2Newb on Sat May 23, 2015 8:21 am, edited 4 times in total.
B
3
Posts: 5
Reputation: 185

Post » Sat May 23, 2015 8:17 am

Message: Construct2Newb is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
B
3
Posts: 5
Reputation: 185

Post » Sat May 23, 2015 9:16 am

the one that cant attack when overlapping enemy is the blue one.
awd for blue guy movement (sub-zero), f=punch g=kick
arrow keys for yellow(scorpion) <=punch >=kick
B
3
Posts: 5
Reputation: 185

Post » Sat May 23, 2015 3:17 pm

You need to use collision boxes. Like if scorpion is punching, you'd create a small box where his hand is for the punching frame. You do this by creating an imagepoint in the image editor on the frame where he punches. Then in your events, if frame = THAT FRAME, then create a collision box. Then you'd check that collision box to see if it overlaps.

There's much more to it than what I've described though. How do you cancel out the opponent's strike if you both hit at the same time? What about frame skipping.. that one frame for the collision box may not be enough, so you'll either need to create it for a few frames, or add a small delay for that frame (in the image editor, you can set delay times for each frame).. and so on..
B
15
S
5
G
7
Posts: 876
Reputation: 5,650

Post » Sat May 23, 2015 9:41 pm

thanks for replying! i'll try fixing dat problem with the solution of urs.
:)
B
3
Posts: 5
Reputation: 185

Post » Sat May 23, 2015 9:47 pm

i dont get the if frame part. I created an image point on the hand when it punches. im sorry if i'm bothering you... but as my name suggests... I started just using Construct 2 yesterday -_-
sorry!
B
3
Posts: 5
Reputation: 185


Return to How do I....?

Who is online

Users browsing this forum: darkjant, ST314 and 31 guests