How do I show random animation frame for a spawn object?

Get help using Construct 2

Post » Sun Jan 25, 2015 11:31 am

HI guys,

I have an object1 which spawn object2 on a timer. Object 2 has a default animation with 100 frames. I want to assign a random frame to the newly generated object 1.

The problem I have is when I do that object1 | set animation frame to random ( 0,100) all instance of that object's frame change, is there anyway to only assign the new changes to the newly generated object?

Many thanks in advance.
B
5
S
1
Posts: 35
Reputation: 447

Post » Sun Jan 25, 2015 12:28 pm

Maybe invert "pick instance with uid"? But I'm not shure

Or something like that viewtopic.php?t=73647&start=0#352637
B
13
S
4
G
2
Posts: 22
Reputation: 1,511

Post » Sun Jan 25, 2015 12:46 pm

Many thanks
I figured it out. The way I was implementing was correct, I just forgot to set the speed to 0 :). When I set the speed to 0 it worked as I expected :)
You do not have the required permissions to view the files attached to this post.
B
5
S
1
Posts: 35
Reputation: 447

Post » Wed May 11, 2016 7:52 pm

i have the same situation @zardaloop but mine doesn't work it keeps showing the first frame again and again
B
8
Posts: 6
Reputation: 310

Post » Wed May 11, 2016 8:19 pm

Did you set the animation speed to 0?
B
5
S
1
Posts: 35
Reputation: 447


Return to How do I....?

Who is online

Users browsing this forum: DharmaOne, Yahoo [Bot] and 16 guests