Problem with Else

Get help using Construct 2

Post » Thu Aug 23, 2012 5:36 am

I'm sorry I know this has been discussed before, but still I can't get it to work, so I'm wondering what I'm doing wrong.

I'm trying to use the Else condition, but apparently it goes through all the conditions and executes the last one.

Basically I have virtually the same problem as the one discussed here:
http://www.scirra.com/forum/else-not-working-properly_topic51456.html

I have tried different suggestions from the forums, but can't get it to work.

I'm using the r100 Beta, so it might as well be a bug.

Also, I had some problems when making the text visible just in case.

If anybody can help I would appreciate it.

B
12
S
2
G
5
Posts: 17
Reputation: 3,564

Post » Thu Aug 23, 2012 2:05 pm

You'd have to post a capx/screenshot or how can we guess if you're doing something wrong or not? Here's an example of else working.
simpleElseExample.capx (r100)
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Fri Aug 24, 2012 1:11 am

I know, just couldn't figure out how to upload the capx. Thanks for your example, but it is very similar to what I have and can't get the logic right.
Here is my event sheet. Any help is greatly appreciated.

http://img404.imageshack.us/img404/9463/elseproblem.jpg
B
12
S
2
G
5
Posts: 17
Reputation: 3,564

Post » Fri Aug 24, 2012 1:25 am

Sorry to bother again, here is the capx! :)

https://dl.dropbox.com/u/39300777/FAQs/Random%20Math%20Game%202.capx
B
12
S
2
G
5
Posts: 17
Reputation: 3,564

Post » Fri Aug 24, 2012 1:47 am

Your operator variable is a number and it should be text. Also you have "x" for multiplication but then in event 6, if operator = "*".
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Fri Aug 24, 2012 1:57 am

Sweet Ramones! The little details (aarghh) I'm trying to make games for my little girls, that was the original reason to get Construct, but who knows maybe one day I'll make a decent game!. Once again thank you!!   
B
12
S
2
G
5
Posts: 17
Reputation: 3,564


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 22 guests