Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
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.
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
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!
Develop games in your browser. Powerful, performant & highly capable.
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'.