Hexagonal Image Frame?
Richard Gaskin
ambassador at fourthworld.com
Tue Jul 14 23:41:16 EDT 2009
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