Board game with pieces / scrolling images in sync?
Andres Martinez
andres at bakno.com
Wed Jan 9 14:31:12 EST 2008
Hello Josh
Answers below...
Regards,
Andres Martinez
www.baKno.com
On Jan 9, 2008, at 2:19 PM, Joshua Lawrence wrote:
> Thanks, Andres. So a couple of extra questions: how
> does adding/removing pieces during play work when the
> pieces are grouped with the board? Are 'out-of-play'
> pieces actually on the board at all times, but you
> make them invisible when necessary? Or do you
> add/remove pieces to the group via scripting
> throughout a game session?
You can do both. If the number of pieces is relative small or if they
have many different properties (images, properties, etc.), I recommend
you hide them. Otherwise it is better to add/remove via script.
> Also, is there a good tutorial on using relative
> positions? The Rev docs seem to be skimpy on the
> subject. Sorry if this is a basic question, I'm still
> new to Rev. ;)
I don't know about such tutorial. My recommendation is to move any
piece relative to the current position of that same piece.
> Josh
>
>>> From: Andres Martinez
>>
>> Hello Josh
>>
>> What you want to do is really simple. Just group the
>> board with the
>> pieces, and when you need to scroll the board,
>> scroll that group
>> instead. It will scroll both the board and the
>> pieces at the same
>> time. And to move the pieces over the board, use
>> relative positions.
>> We do the same on our Domino game.
>>
>> Regards,
>> Andres Martinez
>> www.baKno.com
>>
>> On Jan 9, 2008, at 10:16 AM, Joshua Lawrence wrote:
>>
>>> Hello, all. I want to emulate a board game with
>>> multiple playing pieces, and the board itself is
>>> several screens wide, so it needs to scroll. I
>> know I
>>> can implement the scrolling board by having its
>> image
>>> set up as a group with its location locked and
>> adding
>>> vertical and horizontal scrollbars. But the
>> playing
>>> pieces (also images) on the board need to be able
>> to
>>> change position when the user manually moves them,
>> and
>>> also need to scroll in sync with the board image
>>> (moving in and out of view) whenever the user is
>> using
>>> the scrollbars.
>>>
>>> Is it possible to achieve that somehow by setting
>> the
>>> properties of the game piece images? Or will the
>>> scrolling of the game pieces have to be done by
>>> scripting?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list