newbie UID question

Get help using Construct 2

Post » Tue Jan 31, 2012 3:36 pm

I've been looking through posts referencing the UID attribute and they're all a little over my head. I have a sprite and I want to have multiple instances where each sprite is playing it's animation from a different frame. At the moment I'm just not sure how to address each sprite separately in the event editor - I imagine that it's easy and related to UID - can anyone point me in the right direction?

thanks!
B
4
Posts: 13
Reputation: 576

Post » Tue Jan 31, 2012 4:56 pm

Just add a string type variable, and for each instance type the animation name as the variable value.
Then in the editor, add a trigger, trigger once while true, sprite set animation to sprite.variable.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue Jan 31, 2012 5:13 pm

if it's just the starting frame you want to change, just set it in the "initial frame" in the property panel for each of your instance
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed Feb 01, 2012 1:33 am

Ok, it turns out changing the 'initial frame' is all I needed to do for my purposes - but Newt - it seems like you're describing a very roundabout way to accomplish something construct does anyway? Or maybe I'm not understanding. In any case, thanks for the help!
B
4
Posts: 13
Reputation: 576

Post » Wed Feb 01, 2012 10:00 am

newt's way is good if you want to start with different animations. As you don't have an "initial animation" property.
But instead of 'trigger once' I would probably use a 'start of layout'.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests