Is Animation Playing Count

Get help using Construct 2

Post » Mon Jun 20, 2016 8:49 pm

Hello

What i want is simply not object counts, the count of a specific animation of object. I mean something like this:

a object has x,y,z animations

if there is no x animated a object, then the variable m becomes n.

how do i do this?

thanks in advance
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Mon Jun 20, 2016 9:20 pm

Um i dont think its possible to have construct to count the animation within a sprite. But the question I have for you is what effect are you hoping to achieve and do you have any example you wish to clone ?
B
52
S
24
G
6
Posts: 391
Reputation: 7,845

Post » Mon Jun 20, 2016 9:54 pm

probably using AnimationFrameCount expression.
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Mon Jun 20, 2016 10:24 pm

something like this maybe?
Image
B
45
S
21
G
65
Posts: 1,115
Reputation: 38,221

Post » Mon Jun 20, 2016 10:56 pm

Gearworkdragon wrote:Um i dont think its possible to have construct to count the animation within a sprite. But the question I have for you is what effect are you hoping to achieve and do you have any example you wish to clone ?


there are objects that are breakable, and unbreakable (they are seperate animations) its like if there is no breakable left game overs etc

FraktalZero wrote:probably using AnimationFrameCount expression.


i think it only counts the frames in animation :/

Prominent wrote:something like this maybe?
Image


thanks dude, i guess that will work :D if there is no such object that it's "var" variable is 1, then the events will trigger. i'll check it out thank you :)
B
18
S
2
G
1
Posts: 67
Reputation: 1,339

Post » Wed Jun 22, 2016 2:21 am

Let me change my question;

There are objects collising each other but have different animations.

for example there is a y object that has x,a,b animations. an object is overlapping all of them. I want that if there is no X animated Y object is not overlapping that big object, the big object gets destroyed. (still a animated y object is overlapping the big object.)

Is there such option?
Thanks in advance
B
18
S
2
G
1
Posts: 67
Reputation: 1,339


Return to How do I....?

Who is online

Users browsing this forum: MassimoF, Microbex, Yahoo [Bot] and 25 guests