Tutorial Downloads

File Size
board3.capx236KB

Translations

Know another language? Translate this tutorial!

Stats

1,551 visitors
4.7K page views

Rexrainbow Board series tutorial #3 Chess remove, drop, and add row

Favourite 13 favourites
Tutorial written by jomoOriginally published on 29th, February 2016 - 2 revisions

Chapter 1. Chess Remove
~~~~~~~~~~~~~~~~~~~~~
In last tutorial we've successfully find matched chess in match-3 and L-shape patterns. In this tutorial we will teach you how to remove those chess, drop them down, and add a new row of chess on our board.

Before we start, we need to refactor our event sheet in order to make it a structural design. Please open the capx file which you made in last tutorial, add a <Function> plugin to your project, and edit the following parts:



In the above event sheet we moved match-3 logic into "match3" function, and moved L-shaped logic into "matchL" function and call them every 1.0 seconds. In each of the <Matcher> event, we destroy chess after flashing them for 0.5 seconds. Push <F4> to run layout, now you can see the matched chess are removed after flashing for 0.5 seconds.

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

1
AbelaNET 14.8k rep

Thanks for sharing

Friday, March 25, 2016 at 10:42:21 PM
0
theelderlord 479 rep

1st of all - ^^ THX a lot for the countless plugins which realy helps (me and other beginners) a lot for some understanding and making it easier to follow up a little to our more advanced companions! Im totaly impressed by the spirit and community-thinking in the gamedev-world as far my experience :D ( couldn't find a single "elbow" )

2nd - to optimize the tutorial i'd recommend an additional statement about the

- function return 0 on match 3 (with one of your red squares ^^)

...so if user's learn at latetime's and concentration fades slowly they figure out eventual missing events faster xD

found the return 0 thing only cause i compared the exsample.capx with mine :D ( or i skipped a line while reading oO...possible too )

still... Thank u very much for the effort !!!

May u have luck in life ^___^

Wednesday, April 06, 2016 at 9:55:35 PM
0
qzflying 644 rep

I am finished this tutorials ! It is hard, but i finished it ,Thank you Mr Fu!

Friday, August 05, 2016 at 10:19:58 AM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.