Hexagonal Image Frame?

Joe Lewis Wilkins pepetoo at cox.net
Wed Jul 15 00:50:32 EDT 2009


Richard,

Whether you or Nicolas are correct, I found no way to set the  
backgroundPattern property for a graphic object. Where is that  
Property to be found?

Joe Wilkins

On Jul 14, 2009, at 8:41 PM, Richard Gaskin wrote:

> Rick Harrison wrote:
>> I'm trying to create a game, and I
>> wanted to use hexagonal image
>> frames put tightly together to make
>> a kind of game board where the
>> images can change.  Is this possible
>> to do with Revolution?
>
> You could use a hexagonal graphic, setting the graphic's  
> backgroundPattern property to the ID of an image you want shown  
> within it.
>
> Not only will that give you what you're looking for but for game  
> tiles it's a more efficient use of memory, since there's only one  
> actual image object which is copied as the backgroundPattern of any  
> graphic objects that use it.  For a few tiles this may not matter  
> much, but if your game space has dozens or hundreds of tiles this  
> can be quite a savings.
>
> --
> Richard Gaskin
> Fourth World
> Revolution training and consulting: http://www.fourthworld.com
> Webzine for Rev developers: http://www.revjournal.com




More information about the use-livecode mailing list