Can you tell an object to fade in and out on touch/click release?
You can give the object the fading behaviour and restart the fade if needed
Develop games in your browser. Powerful, performant & highly capable.
I've got a fade on an object but every time I load a preview it plays on start up. I want it to play on button press?
You are right, it fades once at start up, but if I am not mistaken, the object has the method "restart fade", does it not?
It does and I would want it to restart the action but it needs to be on button press! How come fade only has one option?
What other option than restart do you need?
On press --> Fade out
Then after fade out --> Restart Fade
So its continuous every button press!
<img src="http://quak.laurig.de/restartFade.PNG" border="0" />
if you want to stop the fade behavior you can set the object's timescale to 0
Set it to 1.0 and restart fade to fade.
Where's this time-scale?
Scrap that! Found it and got it working! Thx again Yann! :)