Next problem:

I need the billboards to not be able to be dragged past each other on the x-axis. Which means keeping track of the position of each then creating some simple logic to limit their movement. Clamping movement to particular bound is easy, but the problem then becomes getting the positions of the other billboards inside the Iterator, since each iteration needs to know the position of the billboards in the previous and next iterations. But... you can't get values from other iterations, and because the Iterator had a billboard in it, it's turned blue, and therefore can't have an output....

a|x



On 3 Jun 2010, at 14:20, Alex Drinkwater wrote:

Ah, that does the job!

Thanks George.

a|x


--- On Thu, 3/6/10, George Toledo <[email protected]> wrote:

From: George Toledo <[email protected]>
Subject: Re: Programmatic Billboard/Sprite Position and Interaction
To: "Alex Drinkwater" <[email protected]>
Cc: "quartzcomposer-dev list list" <Quartzcomposer- [email protected]>
Date: Thursday, 3 June, 2010, 13:51

The offsets on the interaction patch work inside of an iterator, so you can use them to setup initial positions (to some extent). See attachment.
-George Toledo


On Thu, Jun 3, 2010 at 8:39 AM, Alex Drinkwater <[email protected]> wrote:

There's probably a really simple answer to this one, but I can't currently see it.

I'd like to programmatically set the initial positions of several sprites/billboards, but I'd also like to be able to subsequently drag them to new positions with the mouse.

I'm not quite sure how to approach it, to be honest.



Anyone any thought?



a|x

http://www.toneburst.net

_______________________________________________

Do not post admin requests to the list. They will be ignored.

Quartzcomposer-dev mailing list (Quartzcomposer- [email protected])

Help/Unsubscribe/Update your Subscription:

http://lists.apple.com/mailman/options/quartzcomposer-dev/gtoledo3% 40gmail.com



This email sent to [email protected]








 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (Quartzcomposer- [email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/the_voder% 40yahoo.co.uk

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to