Hello everyone,
I started a game on Construct yesterday, so I'm pretty much a beginner. That's why I will have many questions.
My project is a shoot em up and the concept is when the player shoot he will use some of his life. So when he doesn't shoot his life come back with some time.
Player (P): 100PV
P: shoot 10 times >>>100PV-10PV=90PV
P: wait and dont shoot 5sec
P: regen 10PV >>> 90PV+10PV=100PV
But even if P wait 10 more second his life will still stay at 100PV because it's his normal MAX PV.
It was easy to do that, but the other point is when the player kill an ennemi, he will receive a part of the ennemi life.
Player (P): 100PV
P: shoot 2 times >>> 100PV-2PV=98PV
P: kill MOB so P receive 10PV in bonus
P: 108PV
But after that :
P: 108PV
P: shoot 15 times >>> 108PV-15PV= 93PV
P: wait 20 sec
P: Regen to 100PV (and not 108PV !! the player loose his 8PV bonus points )
And I'm pretty lost with this last part unfortunately. But like I said I'm a beginner with Construct 2, so if somebody could help me with that it will be amazing.
Thank you very much