Toast message in GS
ryast
Member Posts: 145
In Android if you want to show/fade in a quick message to the user and then fade out that message it's called a "toast".
Eg:
When the user presses on a "Level 9" graphic you display the message "This level is currently locked"
How can I do this in GS?
Will I have to make a custom animation for each message or is there an easier way?
Thanks!
Comments
You could create one actor with a Display Text Behavior and use a Text Attribute as the text displayed. Just feed the Text Attribute a new line of text each time using a Change Attribute Behavior.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
just interpolate the alpha value down to 0 over set time period. I do it all the time on button pushes
when you touch the button it will flash away then fade back in. you can do it reverse for a notification
or something like that
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Thanks guys! Will try what you wrote and come back if I have problems