Think DMC

Get help using Construct 2

Post » Wed May 22, 2013 2:25 pm

Hey Y'all!

So a quick question: If I were to implement a combo mechanic, similar to that of, say, the Devil May cry series, how would I go about that?

To clarify, by 'combo mechanic' I mean the following:

The player can execute a variety of attack through combined key input (like the 'half-circle-forward hadoken from SF for instance).

So far I have only managed to connect one single key press per action. I would like to know how I could have characters act differently, according to key combinations.

If someone has already explained: sorry my bad, where can I find it?


Posts: 51
Reputation: 627

Post » Wed May 22, 2013 2:54 pm

You know a bit about arrays ? If not we have good Tutorials for it ;)

Make an Array and save there the pressed keys like: Array(1: Z, 2:Y, 3:Y, ....)

In you On key Press function something like:
+ On Key press
++ If Key = Z
+++ if Array = Z, Y, Z
----> Special skill Haduken
----> reset Array (optional)
+++ if Array = Z, Y, Y, Y
----> Special Skill Sharingan
----> reset Array (optional)

This is just an idea, try it on your own risk :D
Posts: 512
Reputation: 5,555

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests