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
19
S
8
G
3
Posts: 429
Reputation: 3,972

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
29
S
11
G
27
Posts: 731
Reputation: 17,004

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
19
S
8
G
3
Posts: 429
Reputation: 3,972

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
19
S
8
G
3
Posts: 429
Reputation: 3,972


Return to How do I....?

Who is online

Users browsing this forum: Lancifer, MPPlantOfficial, Sup with that? and 65 guests