Ok, I didn't know that you could just put multiple code under one name...or that doing otherwise would corrupt everything.
Now I can click the button but nothing happens.
Can i do it like this?
Or do i have to keep the hierarchy?
- Show Spoiler
- Code: Select all
#Door
Button:
quickscript:
stateanimation:
objectname: Door1
region: ClickRegion
sdlname: DoorSDL
avatar:
animation: DoorButtonTouch
animtarget: Avi-AnimStart
forewards:
animation: Door11
animsound: joco_sound_emitter
clickanim: ButtonAnim
clicksound: joco_sound_emitter
backwards:
animation: Door11
animsound: joco_sound_emitter
clickanim: ButtonAnim
clickreverse: true
clicksound: joco_sound_emitter
animations:
- name: ButtonAnim
autostart: 0
loop: 0
Door1:
animations:
- name: Door11
autostart: 0
loop: 0
Well, this one does not work so i guess i screwed something up. Again.