And one button on hover show two images individually.
I don't have access to computer right now, so i have this code in my mind. Im using my phone to make this post. I only have access to computer at school, i havr external hardisk but no laptop or computer my computer was sold a long ago.
The code in my mind:
Code: Select all
transform box_move:
on show:
#somethings
on hide:
#somethings
transform text_move:
on show:
#somethings
on hide:
#somethings
image box_button_text:
#something
image text_info_button:
#something
Screen i_hate_doing_it_on_phone:
tag menu
imagemap:
ground "images/something_idle.png
hover" images/something_hover.png
hotspot(100, 100, 200, 200) action Start() hovered [Play("Ch_costume_sounds", "sfx/test1.ogg), Show("box_button_text" at box_move, "text_info_button" at text_move)] unhover [Play("Ch_costume_sounds1", "sfx/test1.ogg"), Hide("box_button_text" at box_move, "text_info_button" at text_move)]
hotspot(100, 100, 200, 200) action Quit(confirm=True) hovered [Play("Ch_costume_sounds2", "sfx/test1.ogg" ), Show("box_button_text1" at box_move, "text_info_button1" at text_move)] unhover [Play("Ch_costume_sounds3", "sfx/test1.ogg"), Hide("box_button_text" at box_move, "text_info_button" at text_move)]
#more sound channel. Why? So it's won't overlapping.
How should i do it? Define the image with alt?
-------Define images with alt first
|
V
Code: Select all
# darn it i forgot to give the transform an init - 2, im on my phone it's hard enough to give 4 space as an tab. everytime I'm on a new line
# I think tab = 4 spaces am i right?
init - 2: #######
#this init for the transform i forgot to write it first and so i won't give the following transform more 4 spaces
#too lazy to done that.
transform box_trans:#on init block
"box1.png"
alpha 0
linear 0.3 alpha 1
linear 0.3 alpha 0
"box2.png"
alpha 0
linear 0.3 alpha 1
linear 0.3 alpha 1
repeat
transform box_hide:
"box1.png"
transform text_info_trans: #on init block
"text1.png"
alpha 0
linear 1 alpha 1
linear 1 alpha 0
repeat
transform text_hide:
"text1.png"
#is there's an easier way to make the transform.
#i was going to use parallel but nope basicaly i want
#tge image to blink and move
image box_button_text:
on show:
contains text_info_trans
xpos -300 ypos 1
linear 1 xpos 1
on hide:
contains text_hide
xpos 1 ypos 1
linear 1 xpos -300
image text_info_button:
on show:
contains text_info_trans
xpos -300 ypos 1
linear 1 xpos 1
on hide:
contains text_hide
xpos 1 ypos 1
linear 1 xpos -300
Screen i_hate_doing_it_on_phone1:
tag menu
imagemap:
ground "images/something_idle.png
hover" images/something_hover.png
hotspot(100, 100, 200, 200) action Start() hovered [Play("Ch_costume_sounds", "sfx/test1.ogg"), Show("box_button_text", "text_info_button")] unhover [Play("Ch_costume_sounds1", "sfx/test2.ogg"), Hide("box_button_text", "text_info_button")]
hotspot(100, 100, 200, 200) action Quit(confirm=True) hovered [Play("Ch_costume_sounds2", "sfx/test1.ogg"), Show("box_button_text1", "text_info_button1")] unhover [Play("Ch_costume_sounds3", "sfx/test2.ogg"), Hide("box_button_text", "text_info_button")]
With the button it self moving*
Code: Select all
#using the define on the script above
transform button_drop:
xpos 600 ypos -100
linear 0.5 ypos 300
linear 0.3 ypos 260
0.7
linear 0.2 ypos 300
Screen i_hate_doing_it_on_phone2:
tag menu
add #background
imagebutton:#button move
auto "button_start_%s.png
at buttun_drop
focus_mask True
action Start()
hovered Show("box_button_text", "text_info_button")# is this a thing on image buttons?
unhover Hide("box_button_text", "text_info_button")# is this a thing on image buttons?
hover_sound Play(" Ch_costume_sounds", "sfx/test1.ogg")
unhover_sound Play(" Ch_costume_sounds1", "sfx/test2.ogg")# is this a thing?
activate_sound Play(" Ch_costume_sounds2", "sfx/test3.ogg")
imagebutton:#button move
auto "button_quit_%s.png
pos(600, 550)
#almost forgot i can use this better than xpos 600 ypos 550. Wait did i just write it? Oh yeah while here is this a thing xypos(600, 500)?
focus_mask True
action Quit(confirm=True)
hovered Show("box_button_text1", "text_info_button1")# is this a thing on image buttons?
unhover Hide("box_button_text1", "text_info_button1")# is this a thing on image buttons?
hover_sound Play(" Ch_costume_sounds3", "sfx/test1.ogg")
unhover_sound Play(" Ch_costume_sounds4", "sfx/test2.ogg")# is this a thing?
activate_sound Play(" Ch_costume_sounds5", "sfx/test3.ogg")
I don't even know why I'm giving you guys a screen shot of my phone writing this... Maybe i got bored and so I'm just going to do something hahaha sorry and sorry i bombarded you with script and nonsense of mine.
Notice: CAREFUL ABOUT THE TAB/SPACES
Edit: What a long post
Btw Thanks