Continuous flash behaviour

Get help using Construct 2

Post » Sat Apr 22, 2017 10:32 am

Hello!

Does anyone know if it's possible to set the flash behaviour to continuous rather than stipulating a time? I know I could just give it a crazy big number or create a function using timers/every X seconds, but it would be handy if I could just set it to run indefinitely (setting it to -1 seconds, for example).
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Sat Apr 22, 2017 11:01 am

Instead of using the "Flash" function, simply give your sprite a SINE function. NUMBER ONLY.

Set your period very short like 0.2 sec
Choose at appropriate Wavelength type. Sawtooth should work.

On Sine enabled | Set Opacity to Object.Sine.Number
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Sat Apr 22, 2017 11:11 am

@MPPlantOfficial Good point, cheers. In fact Square would work better than sawtooth, should jump between 0 and 1.
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Sat Apr 22, 2017 1:19 pm

@mekonbekon you can use 'infinity' for the time value.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,329

Post » Mon Apr 24, 2017 8:49 am

@gameglaux - perfect! Thank you :)
B
20
S
9
G
4
Posts: 473
Reputation: 4,260


Return to How do I....?

Who is online

Users browsing this forum: Christmas and 54 guests