Variables Problem

Just started using Construct 2? Post your questions here

Post » Mon Dec 08, 2014 2:33 pm

Hello! I´m making a platform boss battle using variables to the energy, when veriable "BossEnergy" reachs 0, the boss is destroyed... the problem is that sometimes in the previews, the boss still alive with negative energy... and sometimes in other previews without a single event modification, the boss dies... my question is... WHY?
B
4
Posts: 5
Reputation: 212

Post » Mon Dec 08, 2014 2:53 pm

ZakuEGA wrote:when veriable "BossEnergy" reachs 0, the boss is destroyed... the problem is that sometimes in the previews, the boss still alive with negative energy.


Use..
"BossEnergy" is less or equal to 0...Boss destroy

ZakuEGA wrote: .. and sometimes in other previews without a single event modification, the boss dies... my question is... WHY?


without the capx..... :?
Image
B
65
S
23
G
7
Posts: 1,502
Reputation: 10,890

Post » Tue Dec 09, 2014 12:28 am

Thank you! I put "less or equal" to the "compare boss energy" and now it works correctly every time :DD

thank you again!
B
4
Posts: 5
Reputation: 212

Post » Fri Dec 12, 2014 8:19 pm

sure you had only " is equal" selected, but this situation may not always come to pass

Boss HP: 10 Shoot dmg 15 BOSS will become "immortal"
Boss HP: 10 Shoot dmg 10 BOSS dies
B
18
S
6
G
3
Posts: 197
Reputation: 4,129


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest