Stop Flashing makes object visible

Bugs will be moved here once resolved.

Post » Sun Feb 09, 2014 6:06 pm

Link to .capx file (required! If link is blocked remove the http and www parts):
https://www.dropbox.com/s/twi6aie8vp7lrt3/StopFlashBugDemo.capx

Steps to reproduce:
1. Make a text object.
2. Add the Flash behaviour to it.
3. Make it flash.
4. Make it invisible.
5. Stop it flashing.

Observed result:
Object is visible.

Expected result:
Object should be invisible.

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

Operating system & service pack:
Windows 7 SP1

Construct 2 version:
Release 160.2
B
44
S
15
G
6
Posts: 132
Reputation: 9,205

Post » Sun Feb 09, 2014 7:20 pm

[QUOTE=arcalaus] Link to .capx file (required! If link is blocked remove the http and www parts):
https://www.dropbox.com/s/twi6aie8vp7lrt3/StopFlashBugDemo.capx

Steps to reproduce:
1. Make a text object.
2. Add the Flash behaviour to it.
3. Make it flash.
4. Make it invisible.
5. Stop it flashing.

Observed result:
Object is visible.

Expected result:
Object should be invisible.

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

Operating system & service pack:
Windows 7 SP1

Construct 2 version:
Release 160.2 [/QUOTE]

The flash behaviour change the actual visibility of the object If I remember correctly, thus it is not a bug, so you should set the visibility afterwards
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Feb 10, 2014 1:20 pm

Closing as this is actually by design, that 'Stop Flashing' makes the object visible again. Workaround: just move the 'set invisible' action to after the 'stop flashing' action.
Scirra Founder
B
399
S
236
G
89
Posts: 24,530
Reputation: 195,402

Post » Wed Feb 12, 2014 10:41 pm

OK, I worked around it easily.
I thought you had two different "variables" to check state, so you could see if a flashing object was already invisible (in my "weltanschauung", the flashes of the invisible flashing man are invisible).

I use to employ "turn invisible" to get rid of objects without destroying them despite of events they could activate.

Well, this feature has an advantage. I can make the object visible by simply making it flash, so I can save the "make visible" action.
B
44
S
15
G
6
Posts: 132
Reputation: 9,205


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests