4 in a row

Get help using Construct 2

Post » Mon Apr 28, 2014 7:16 am

Hello,
does anyone have some tips on how do i implement scorring logic for game like 4 in a row and similar?

thanks!
B
29
S
11
G
2
Posts: 692
Reputation: 5,159

Post » Mon Apr 28, 2014 10:38 pm

Search for match-3 games.
One method: Use sprites (helper) and create it around an object you want to check if other similar objects are around.
Check collision and set a variable to i.e. "matched = 1". And at the current tick delete the helper-sprite and create new at the checked objects around. etc. (loop).
Here are some variable for the objects:
- typ // for matching
- checked // set if the object is already checked. (otherwise endless looping).
- matched // set if the object is matching to the origin object
B
13
S
4
G
1
Posts: 107
Reputation: 1,337


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests