Logic "methods"

Get help using Construct 2

Post » Wed Nov 13, 2013 8:28 am

Hi
I'm used to coding in C# and for my latest game, I want to check whether the player has won or not after each turn. Normally I would consider creating a method to do this (and which could be called from a number of places) but I'm not sure how this might be implemented within Construct 2? I know how to create simple events but they seem a bit too simple - or I'm probably missing something - on how to check that three counters are lined up (for example)?

Thanks for any help.

Matt
B
12
S
3
Posts: 37
Reputation: 1,111

Post » Wed Nov 13, 2013 9:21 am

Functions ;)

Call the function with parameters to specify either the 3 counters or 1 counter with that you can easily get the other lined up counters.

Methods are nearly the same than functions.
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Wed Nov 13, 2013 10:59 am

Excellent, thanks!
B
12
S
3
Posts: 37
Reputation: 1,111


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 8 guests