set animation action is not working as always

Bugs will be moved here once resolved.

Post » Wed Oct 17, 2012 7:56 am

I have been working with the set animation action for a long time until v 103.2 like this:
if I click with mouse, touch or keyboard key and you keep clicking or touching an object or holding a key on the keyboard the set animation action play the "x" animation from the beginning without looping as the "x" animation was placed without looping in the animations properties, the "x" animation just play once:
https://www.dropbox.com/s/lajpcroakkfqsof/Construct2animationbugV103.2.capx


in v 104, 105, 106 and 107, if I click with mouse, touch or keyboard key and you keep clicking or touching an object or holding a key on the keyboard the set animation action play the "x" animation from the beginning without loop as the "x" animation was placed without looping in the animations properties, the "x" animation keep playing looping:
https://www.dropbox.com/s/96henc53gz1s5p9/Construct2animationbugV107.capx

My question is: Is this a bug?
B
16
S
8
G
9
Posts: 24
Reputation: 7,045

Post » Wed Oct 17, 2012 8:59 am

I just checked your capx..
if I'm holding down key, animation plays once
but if i hold down left mouse button, it keeps looping
checked on v107

might be a bug.. maybe @ashley could help
B
12
S
3
G
4
Posts: 23
Reputation: 3,682

Post » Wed Oct 17, 2012 3:15 pm

I don't think this is itself a bug, but a result of a bug that was fixed recently.

'Is touching object' is always true so long as you are touching it. In r103.2, 'Set animation (play from beginning)' would be ignored if setting the same animation, and the animation had finished. In r107, 'Set animation (play from beginning)' is no longer ignored if setting the same animation and the animation has finished. IMO it actually makes more sense this way. If the "Running" animation has finished, and you say "Set animation to 'Running' (play from beginning)", it should be expected that the animation plays again.

Workaround: don't set animations to play from beginning every tick. Use 'On touched object' instead of 'Is touching object', 'On key pressed' rather than 'Is key down', etc.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,574

Post » Thu Oct 18, 2012 7:16 am

Ashley:

Thank you for your quick response... As always... I"ll try your advise... I didn't know that I was working with a bug... actually I was happy with the results... but what you say makes more sense...!!!
B
16
S
8
G
9
Posts: 24
Reputation: 7,045


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest