Add a card:destroy action to start of layout. The off screen card is what is giving the unmatchable cards.
Make event 8 so that it is not a sub-event of event 5 and that should fix most of it. You can still get two pairs of the same card so just delete the duplicate frames.
Here is a unpolished Mahjong example:
http://www.scirra.com/arcade/example/1520/mahjong
Here's the math to position on the larger box:
http://dl.dropbox.com/u/5426011/examples13/gridOnRotatedBox.capx
Making the objects follow is as simple as using the pin behavior.
Here's a way:
http://www.scirra.com/forum/swap-position-to-another-object_topic54085_post338164.html#338164
If you have the time in milliseconds:
t: time in milliseconds
milliseconds: t % 1000
seconds: int(t / 1000) % 60
minutes: int(t / 60000) % 60
So your display would be:
(int(t / 60000) % 60) & ":" & (int(t / 1000) % 60) & ":" & (t % 1000)
Develop games in your browser. Powerful, performant & highly capable.
The ctypes module isn't included with Construct.
So here is a complete example with all the required files:
http://dl.dropbox.com/u/5426011/examples13/focus2.zip
Here is an example:
http://dl.dropbox.com/u/5426011/examples13/zipresource.zip
Python can extract password protected files but it needs another library to add password protected files, so I made res.zip with 7-zip to add the password (your unzipping program of choice should work as well).
1.
Save the value in the editbox to a global variable then recreate the box and set the text.
2.
yes.
I use the google search (top right) when I'm searching for a phrase. It works pretty well.
Kind of like this?
http://dl.dropbox.com/u/5426011/examples13/deal_pairs.capx
Here is an example of my suggestion:
http://dl.dropbox.com/u/5426011/examples13/array_instances.capx
An alternate would be to not use an array at all, just use sprites and collisions to do it visually.
Member since 15 Jun, 2009