How do I fix this slot machine example?

Just started using Construct 2? Post your questions here

Post » Sun Jun 08, 2014 4:42 pm

Hey guys, this is my first post and first time using construct 2. I'm having some difficulty with this example, I'm looking for some help fixing it. You can get the example here:
slot-machine-like-effect.capx

My problem, I cant get the checkCombination() function to display a win with 3 x slot matches because getting 2x slot matches seems to override it. If anybody can help me sort this little issue I would greatly appreciate it. I've fiddled, stepped away and came back multiple times, just cant wrap my head around what's going wrong. FYI I've also read how events work, I figure both 3x and 2x frame matches are returning true. I want 3x match only and 2x match only when not 3x match.

Hopefully I've explained the problem thoroughly enough, I'm never really good at explaining things. Thanks in advance!
You do not have the required permissions to view the files attached to this post.
Last edited by Yuwee on Sun Jun 08, 2014 4:49 pm, edited 2 times in total.
B
6
S
1
Posts: 13
Reputation: 426

Post » Sun Jun 08, 2014 4:46 pm

You haven't enough rep to post links, but you can get around it by placing a space in the url, or just try and attach the .capx.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
87
Posts: 5,493
Reputation: 60,272

Post » Sun Jun 08, 2014 4:48 pm

Yeah, sorry I was just editing the post to include them.
B
6
S
1
Posts: 13
Reputation: 426

Post » Sun Jun 08, 2014 5:10 pm

You need an else after event 11, so event 20 only gets called if 11 doesn't. You have the final Else correct. Select event 11, type X, then select 21 and 30 and drag under (sub-event) of the new 20 (Else)
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Sun Jun 08, 2014 5:31 pm

Thanks so much for the assistance, working like a charm. Now Onward to my next problem!
B
6
S
1
Posts: 13
Reputation: 426


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 4 guests