Carcassonne

Geoff Canyon gcanyon at gmail.com
Tue Nov 24 08:45:22 EST 2015


There might be a clever way to use mouseEnter and mouseLeave, but at the
least you could use mouseMove and then check the pointer location against
available spots to take appropriate action.

On Mon, Nov 23, 2015 at 5:44 PM, Richmond <richmondmathewson at gmail.com>
wrote:

> I am playing around with tiling games, mainly as I use Carcassonne
> extensively as a teaching aid in my ESL school.
>
> I have got to the, admittedly fairly primitive stage, of making a set of
> tiles, each capable of being dragged and dropped onto
> a grid consisting of drop-targets made up of rectangular graphics.
>
> Each of these tiles also "owns" a button in its centre that allows it to
> be rotated.
>
> HOWEVER I have 2 main problems:
>
> 1. How do I make sure that once one of my tiles is 'occupying' a drop
> target no other tiles can be dropped on it?
>
> 2. How do I make sure that a tile can be dropped on a target ONLY when its
> sides match the sides of adjacent tiles?
>
> Pictures and stack here:
>
> http://forums.livecode.com/viewtopic.php?f=22&t=25965
>
> Richmond.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list