Combat Based Dynamic Controls

Discussion and feedback on Construct 2

Post » Mon Nov 24, 2014 5:37 am

Hello Construct 2 Forum!

I've got a bit of an issue here regarding combat-based dynamic controls. I want to make Q and E do different things depending on which button W, A, S, D (not directional) was pressed prior to the use of either Q or E.

Here's the breakdown and what I could think of doing but can't actually do (yet):
- Press 'A' to turn Global Variable 'PlayerCombatState' to "Red". When Red is active, Q does an A.O.E attack and E does a thrust attack.
- Press 'S' to turn Global Variable 'PlayerCombatState' to "Yellow". When Yellow is active, Q is an A.O.E stun/repel and E is a more linear/direct block/stun/repel.
- Press 'W' or 'D' to turn Global Variable 'PlayerCombatState' to "Non-Combat". When Non-Combat is active, Q and E are more mundane actions but I've not decided them as of yet.

This may sound fairly simple at first but I'm also trying to consider:
- How to disable one while the other is active
- How to stop Enemy AI from damaging you when you are in the Yellow state
- How to move the player forwards as they commit to the thrust attack- How to knock-back enemy AI that collide with the player while the player is pressing Q

Any help on the matter would be greatly appreciated :)
B
3
Posts: 1
Reputation: 179

Post » Mon Nov 24, 2014 6:19 am

Hey aforster,

https://db.tt/vzToTF7q This should get you started, its how you can deal with the control side of things.

The rest is doable, I suggest checking out all the platforming tutorials you can get your hands on. Might seem a little hard at first but you'll pick it up quickly im sure.
ImageImage
B
123
S
23
G
7
Posts: 1,071
Reputation: 13,091


Return to Construct 2 General

Who is online

Users browsing this forum: technofou and 18 guests