How do I Is animation playing "Default" or "Default2"

Get help using Construct 2

Post » Tue Oct 13, 2015 4:36 pm

Hi, i will like to compare in the same object two differents animations, i explain.
I create on the screen 4 objects, the sprite its the same, but it have different animation (random).
I will like to do if the animation is "Default" or "Default2" (The name i wrote), add a point, but if the animation is other for example animation 2, substrate a point.

This is how i have now, but only works with "Default", I need the two animations if one or the other.
https://gyazo.com/dce871d41cfe471f019ef19f1e93f335
The wait 0.1 is not necessary its only because i was making other things :lol:
Image
B
37
S
10
G
2
Posts: 66
Reputation: 2,798

Post » Tue Oct 13, 2015 4:42 pm

use choose rather than random:

Set animation :choose ("default","default2")

That will clamp your random to only the values in the ().
B
29
S
8
G
4
Posts: 767
Reputation: 5,985

Post » Tue Oct 13, 2015 5:05 pm

jojoe wrote:use choose rather than random:

Set animation :choose ("default","default2")

That will clamp your random to only the values in the ().


I can´t i need to use all the animations, but only give points when is "Default" or "Default2" with the other Animations substrate points
Image
B
37
S
10
G
2
Posts: 66
Reputation: 2,798

Post » Tue Oct 13, 2015 5:54 pm

If I understand:
Add a second condition to event 3: Is animation "Default2" playing.
Select the whole event, right click and pick; Make 'Or' block.
Select the whole event again, right click: Add.. Else.
Move you actions from event 5 here instead.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Tue Oct 13, 2015 6:08 pm

blackhornet wrote:If I understand:
Add a second condition to event 3: Is animation "Default2" playing.
Select the whole event, right click and pick; Make 'Or' block.
Select the whole event again, right click: Add.. Else.
Move you actions from event 5 here instead.

Like this? https://gyazo.com/17ba22cf75e347746b014c5d9857b0c8
Image
B
37
S
10
G
2
Posts: 66
Reputation: 2,798

Post » Tue Oct 13, 2015 6:16 pm

Image
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Tue Oct 13, 2015 6:21 pm

blackhornet wrote:Image

Thanks you so much! You are awesome.
Image
B
37
S
10
G
2
Posts: 66
Reputation: 2,798


Return to How do I....?

Who is online

Users browsing this forum: tdcostas and 6 guests