Beat n' up examples

Get help using Construct 2

Post » Tue Mar 20, 2012 2:35 am

I want a "Beat n' up" capx. example. I don't know how to make an enemy react to a "punch animation". Can someone help me with this?
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Post » Tue Mar 20, 2012 4:11 am

ok, try this example. my congpu guy is in there too :D.
http://dl.dropbox.com/u/52838248/CongPuExample.capx
anythings you don't understand you can ask me here. (Sry for bad Eng T-T)
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Tue Mar 20, 2012 4:56 am

Try having something like...

If Player.Animation = "Punch" Then
If Player.Collision with Enemy.Collision = "True" Then
    Enemy.Hp = Enemy.Hp - Player.Attack
    Enemy.Animation = "Damage"
End If
End If

sorry for my crappy suedo-code, I'm a terrible programmer but I can't think of how else to simply explain it lol
B
64
S
8
G
9
Posts: 290
Reputation: 8,590

Post » Tue Mar 20, 2012 1:06 pm

WOW! Thank you, guys! You are AWESOOOOOME!
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Post » Tue Mar 20, 2012 1:09 pm

[QUOTE=farsmile90] ok, try this example. my congpu guy is in there too :D.
http://dl.dropbox.com/u/52838248/CongPuExample.capx
anythings you don't understand you can ask me here. (Sry for bad Eng T-T)[/QUOTE]

Dude, thanks for attend my request too!
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Post » Tue Mar 20, 2012 2:28 pm

no problem, just try your best, bro !
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Wed Mar 21, 2012 11:26 am

@farsmile90

Why "Sprite13" and "Kick" are set to be destroyed at the begin of level? Anything special? And what mean this "pin"? I couldn't understand the major of events there HAHAHA. Sorry, I'm very noob. D:

Another question: How many days did you take to make this game?

Thanks!

---

Editing: You made the hit sprite invisible to spawn him at each collision point of the player and attack the enemies? (to treat the "hit" as a "bullet", right?) Thanks for the patience, I'm full of questions! lolKrazyKaos2012-03-21 12:00:00
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Post » Wed Mar 21, 2012 12:38 pm

1. When player kick and punch sprite 13 will spawn at image 1 of kick animation, when Sprite 13 spawn and colusion with enemy, they will die. and at the beginning of lvl, i make every 0.1 second sprite 13 destroy to make sure that the sprite13 don't effect the other enemy when player don't kick, 0,1 second enought to kill one enemy when kick and the other come closer don't die if not kick... Oh my god :))

2. Pin behavior is very useful, you should learn it here first .http://www.scirra.com/tutorials/243/building-a-platform-game-a-beginners-guide/page-1

When you already learned this tutorial you'll know what "pin" is.

3. I make this game for 2 day... first day for graphic and animation and second for coding.

4.ofcourse, and when enemy hit the sprite 13 ( mean kick), they will fall and slip on the ground at random distance.
B
50
S
12
G
7
Posts: 259
Reputation: 10,371

Post » Wed Mar 21, 2012 1:22 pm

OMG! I'm having so much fun studying your game, bro! Thanks a lot, you're being veeeery helpful and attentive! Thanks again! If I have any other question I'll come again :DKrazyKaos2012-03-21 13:22:18
B
20
S
2
G
1
Posts: 32
Reputation: 1,997


Return to How do I....?

Who is online

Users browsing this forum: Lof, Yahoo [Bot], YoHoho and 24 guests