Fade Actor In and Out Every 3 Seconds
JoshKahane
Member Posts: 470
Hi
So its me back again for more help.
I want my actor to fade in and out every 3 seconds, and when faded out my other actor can't collide with it so it can pass it. So essentially in game you have 3 second time periods to get through this gap in the puzzle.
Yet again I have gotten myself into a muddle, any help would be much appreciated as per usual, thanks.
So its me back again for more help.
I want my actor to fade in and out every 3 seconds, and when faded out my other actor can't collide with it so it can pass it. So essentially in game you have 3 second time periods to get through this gap in the puzzle.
Yet again I have gotten myself into a muddle, any help would be much appreciated as per usual, thanks.
Comments
Every 3 seconds
change attribute game.collidable to (game.collidable+1)%2
Every three seconds this will switch that attribute from 0 to 1 to 0 to 1 and so on.
Then on your player (or whatever it is) add a rule that says
if attribute game.collidable = 1
colide with player actor
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
My issue now is that I want it so that when the actor has an alpha of 0 I can pass through without changing to my game over scene and when the alpha is 1 it can cause game over when colliding.
Back soon, getting dessert! I need some brain power and its getting late here in the UK.