Power charge

Get help using Construct 2

Post » Sat Feb 13, 2016 9:47 am

Hello everyone :). I want to do some kind of "power charge" in my game. I mean: when the some key is down then the energy is slowly charging like in "Naruto Ultimate Ninja" or "Dragon Ball Xenoverse". How am i supposed to do that?
Thanks for the help :D.

PS. Sorry if I made some mistakes in english but I'm from Poland :D
B
4
Posts: 15
Reputation: 230

Post » Sat Feb 13, 2016 2:36 pm

You can set the wait command to add to the Damage variable:

[Space] is Down
>Every (X) Seconds -> Add (X) To Damage

Make sure whatever the attack is doesnt reset its damage when the charge is done. If it is a projectile or hitbox you can set it to spawn with its own Damage Variable to whatever the charge amount was
B
7
S
1
Posts: 20
Reputation: 585

Post » Sun Feb 14, 2016 11:15 am

Hello :). Thanks for the advice. I did it and it works nice but during charging at some point the power exceeds its maximum value. I mean: the maximum value is set at 150 but the charging doesn't stop at 150 and it is still charging. Do you know how to fix it :) ?
B
4
Posts: 15
Reputation: 230

Post » Sun Feb 14, 2016 11:41 am

Nevermind :D I fixed it by adding condition:

CTRL is pressed
Chakra is < 100
B
4
Posts: 15
Reputation: 230


Return to How do I....?

Who is online

Users browsing this forum: megatronx, RetrocadeMedia, totoe and 1 guest