Is Playing still TRUE after set to different anim

Bugs will be moved here once resolved.

Post » Sun Mar 10, 2013 11:40 am

I'm not sure if this could be consider as a bug, since this probably just how C2 works.
But I thought this is a little bit quirky, at a glance everything seems to be correct.
On a bigger project, stuff like this sometimes hard to track.




Link to .capx file:
https://dl.dropbox.com/u/39382262/BUG/IsPlayingProblem.capx

Steps to reproduce:
1. Open & run the capx


Observed result:
- yellow box stay at (250,250), when it supposed to move to (0,0) after GREEN animation finish playing


Expected result:
- yellow box should be moving to (0,0) after GREEN animation finished playing


Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 7, SP 1

Construct 2 version:
121
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Mon Mar 11, 2013 7:06 pm

Just move Box Set position to (250, 250) action to On any click event and it work. Animation is playing and stop in one tick so both of events are true. C2 check event 2 one time and event 3 all time. That is what I think about it. Sry for my bad english...
B
9
S
3
G
3
Posts: 36
Reputation: 2,433

Post » Mon Mar 11, 2013 7:14 pm

I would do two things

1) move the GREEN finished below GREEN playing
2) Add a wait 0.01 second to the GREEN finished if you keep having issues. Specifically right below the start BLUE animationThndr2013-03-11 19:15:33
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Mon Mar 11, 2013 9:03 pm

Thanks guys, I'll do that for now.

Still this stuff is kinda weird though,
Because when you're reading those simple event, it logically looks correct.
Adding "Wait" or any other trickery to make it works seem to be against common sense (And IMO will add more quirk to how C2 works).

Maybe my suggestion for this case is:

- On finished is triggered at the end of the tick, instead of at the start of the tick.
This way whatever applied to the "On finished trigger" will be applied at the start of next tick right away.

However I don't understand the implication that may caused by the change,
so I guess for now I'll just have to live with this.


Just FYI, another thing that I thought is a C2 quirk is this one:

http://www.scirra.com/forum/r103-new-spawned-obj-is-triggered-by-mouse-click_topic56718.html

The fact that an event is triggered on a newly created object when you haven't done anything to that new object really confuse me.
(maybe not for those who already use C2 for a while, but for new user this stuff is confusing)

Keep piling this little quirk and it will be harder and harder to track a mistakes on bigger project.
B
34
S
13
G
8
Posts: 134
Reputation: 8,118

Post » Wed Mar 13, 2013 2:52 pm

Issue in OP should be fixed in the next build. Closing, if you think there are any other issues that deserve investigation, please post a full separate bug report.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Mar 13, 2013 5:56 pm

using my 100th post to say you're the best dev ever Ashley,
Thanks for listening
B
34
S
13
G
8
Posts: 134
Reputation: 8,118


Return to Closed bugs

Who is online

Users browsing this forum: Kenthria and 1 guest