Candy Can Combo (Templates)

Discuss Scirra's 2D Asset Store

Post » Mon May 16, 2016 12:14 pm

I've bought your file. It contains many great logics but need better explanation to understand the flow concept. Did you finish created the manual?? :) (English version dan klo ada Indonesia version jg gpp Gan, hehe :D )
Try this template if you want to create a game like Brain Dots game !
Image
B
16
S
7
G
4
Posts: 16
Reputation: 3,274

Post » Mon Jul 11, 2016 5:17 pm

Image

This update supposed to introducing trap(s) as new feature, unfortunately it is still premature.
So this update kind of maintenance release that fix several issue:

(issue) shuffle can be executed while candies still moving, especially when pressing shuffle button consecutively
(issue) rainbow candy sometimes not trigger sparks with certain candy color
(issue) candy with strip does not crushed when touched by spark
ImageImage
B
91
S
43
G
21
Posts: 741
Reputation: 20,452

Post » Tue Aug 02, 2016 6:00 pm

@alextro I can't open the demo in the store page, the loading gets stuck at about 75%. I tried it with all my phones and Windows computer.
B
72
S
27
G
17
Posts: 254
Reputation: 14,971

Post » Tue Aug 02, 2016 7:47 pm

@Xavier
Weird I experience the same problem too. Previously it works just fine. Must be something wrong with dropbox server then.

edit: Now the link works normal again after I re-upload the source :!:
ImageImage
B
91
S
43
G
21
Posts: 741
Reputation: 20,452

Post » Wed Aug 03, 2016 12:08 am

@alextro

Yes now it works thank you. However the game is very very slow on one of the phones I have and I don't know why, I think it runs at around 5 fps, I tried all the browsers. It's a xiaomi mi3.

On the iphone 5s it works fine, and these phones should have similar performance. :/
B
72
S
27
G
17
Posts: 254
Reputation: 14,971

Post » Wed Aug 03, 2016 6:35 am

@Xavier
I would like to know too what makes similar hardware have such different performance. Because an OS, maybe?
ImageImage
B
91
S
43
G
21
Posts: 741
Reputation: 20,452

Post » Mon Aug 15, 2016 1:47 am

@alextro

I've been able to test the .capx a little with my phones and I'd like to give you some suggestions on what I've found.

Your code uses a lot of cpu, even if there is nothing going on.

For example, when the game is waiting for a move and nothing is happening on screen, there is still a lot of cpu being used. In this state the game should have almost no cpu usage because there are no calculations to be made yet, but my phone is still at 10 fps when nothing is going on. The iPhone 5s has a better cpu so this is problably why it performs better, but still it shouldn't use that much cpu and your code should be optimized.

An example using debug mode: on Level 1 the game is using around 40% cpu on my Intel 4460 core i5! That's a LOT, it needs to be optimized. Even a simple level like Level 2, it's using:
30% cpu on my desktop i5
40% on iPhone 5s
80% on Xiaomi Mi3

And for comparisons, the Bejeweled plugin by Rex found in the forum only uses 10% cpu on the Xiaomi Mi3.

Another problem I've found is that if I create a square board, 6x6 for instance, nothing happens and I can't swap anything.

It's a shame because I really like the final result and how easy it is to create your own shapes, but I think it need a lot of optimization and a cleaner code.

To start I recommend that you delete all the disabled events and unused layouts and make the events more presentable. Separate different parts of the code with groups or different layouts, this way it's easier to debug and it's more organized.
B
72
S
27
G
17
Posts: 254
Reputation: 14,971

Post » Mon Aug 15, 2016 6:22 am

@Xavier
Thank you for giving some insight from what you have experienced. I read that grouping events will add extra cpu usage, so I avoided utilizing that feature, but I'll consider your suggestion.

Ah that a little strange when you arranged board in square or rectangle fashion and the game isn't playable. The simple work around is by putting a 'peg' over a pad (just only one) in that kind board arrangement. I'll Investigate this, because the problem was not exist in previous update and any board layout should be fine anyway.
ImageImage
B
91
S
43
G
21
Posts: 741
Reputation: 20,452

Post » Fri Sep 30, 2016 1:41 pm

So below is a hand drawing diagram visualization how match-3 game works in this template (more or less). Actually this flow chart helped me solving how combo & chain reaction should be executed in correct order. :o

Image
ImageImage
B
91
S
43
G
21
Posts: 741
Reputation: 20,452

Post » Thu Dec 29, 2016 2:39 am

it run slowly on my android device (demo). why?
B
24
S
4
G
5
Posts: 16
Reputation: 3,773

PreviousNext

Return to Scirra Store

Who is online

Users browsing this forum: adventurist, borsh and 1 guest