I'm using imagebuttons for the main menu of my game (yes, imagebuttons are as cool as the tutorial said
My code for the imagebutton which is concerned:
Code: Select all
imagebutton auto "gui/main_start_%s.png" xpos 450 ypos 300 action Start() at main_eff1
Code: Select all
screen main_menu:
tag menu
add "main_fd.jpg"
add "gui/forme1.png" xpos 333 ypos 520 at main_eff4
add "gui/forme1.png" xpos 805 ypos 520 at main_eff5
imagebutton auto "gui/main_start_%s.png" xpos 450 ypos 300 action Start() at main_eff1
imagebutton auto "gui/main_config_%s.png" xpos 800 ypos 500 action ShowMenu('preferences') at main_eff2
imagebutton auto "gui/main_extras_%s.png" xpos 340 ypos 500 action Start('extras') at main_eff3
init -2:
transform main_eff1:
zoom 0.5
easein 0.4 zoom 1.0
transform main_eff2:
zoom 0.5
easein 0.8 zoom 1.0
transform main_eff3:
zoom 0.5
easein 1.2 zoom 1.0
transform main_eff4:
zoom 0.5
easein 1.2 zoom 1.0 rotate 360.0
transform main_eff5:
zoom 0.5
easein 1.2 zoom 1.0 rotate 360.0
How can I do that?
Thanks in advance!
