Flash: visibility the same?

Get help using Construct 2

Post » Sat Apr 30, 2016 5:53 am

I want to have blinking platforms in my game. I use flash. In the manual, it says "The Flash behavior makes an object blink by toggling its visibility on and off for a period of time."

I tried this:
https://www.dropbox.com/s/sss9pghl1ioy9 ... h.png?dl=0

But it disabled the solid completely, not just when it's invisible.

What can I do to have a blinking platform that is solid when it's visible and not solid when it's invisible?
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Sat Apr 30, 2016 6:08 am

if you want to you can do something like create a variable boolean call it visible

And every 5 sec toggle boolean (visible)

and then set if boolean visible is true then enable solid
make object visible

Else then disable solid.
make invisible

Thus does the blinking you want but you have more control over whats whats you want to occur.
B
52
S
24
G
6
Posts: 391
Reputation: 7,845

Post » Sat Apr 30, 2016 6:34 am

Thanks, @gearworkdragon!
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Sat Apr 30, 2016 6:44 am

How do I toggle something with no input from the user?

I tried "repeat" but it's not working.
B
13
S
4
G
1
Posts: 54
Reputation: 1,440

Post » Sat Apr 30, 2016 11:34 pm

? im a bit confuse you didnt explain what is the condition for the toggle to happen. Is it per tick ? is it on location based ? or is it variable check or an Npc Ai that need a toggle or is it the same as above.

The per 5 sec tick didnt let you have a toggle ?
B
52
S
24
G
6
Posts: 391
Reputation: 7,845


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 21 guests