How do I play animation while using global variable to spawn

Get help using Construct 2

Post » Fri Oct 17, 2014 5:50 pm

I'm using a global variable to randomly spawn coins but the animation will not play when i use this method.
am i missing something?

if i spawn the same object with random second it plays the animation fine.
B
8
S
2
Posts: 54
Reputation: 1,001

Post » Fri Oct 17, 2014 5:58 pm

You'd have to post what you are doing to get help.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Fri Oct 17, 2014 6:21 pm

https://www.dropbox.com/s/53c0hgdi7rms4 ... .capx?dl=0


I'm using a global variable to randomly spawn coins but the animation will not play when i use this method.
am i missing something?

if i spawn the same object with random second it plays the animation fine.
B
8
S
2
Posts: 54
Reputation: 1,001

Post » Fri Oct 17, 2014 6:30 pm

The coins were spawning every tick so the coin on top would show frame 0 of the animation then another would spawn and show frame 0 and on and on........

coin animation wont play when spawned.capx


I've fixed it and reduced the number of events for the actual spawning.
You do not have the required permissions to view the files attached to this post.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Fri Oct 17, 2014 6:35 pm

AWESOME Thank you
B
8
S
2
Posts: 54
Reputation: 1,001


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, ItsAstro, kellehk and 30 guests