How to use "Else" correctly ?

Get help using Construct 2

Post » Sat Aug 27, 2016 10:06 am

Hello everyone,
I m quite beginning using Else condition, so not sure how to use it correctly.
Here is what i am doing :

This is not working (in fact working if there is only one condition above, ex: CurObjet=151)

I would like Else to run when conditions CurObjet =151 and CurObjet=12 not true

Image

I am missing something but don't know what. Does Else only works if just one condition above ?

Thank you
Image
B
9
S
1
Posts: 22
Reputation: 586

Post » Sat Aug 27, 2016 10:21 am

That else there only works when CurObjet is not 151 because it is only followed by that CurObjet = 151 clause.

To do what u want, add another else at the CurObjet = 151, so

CurObjet = 12
...
else
CurObjet = 151
...
else
...
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Sat Aug 27, 2016 10:27 am

I see. Thank you @TwinBlazar
Image
B
9
S
1
Posts: 22
Reputation: 586


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests