A Noob's Guide to Animations
Posted: Mon Jul 21, 2008 9:52 pm
Unfortunately, I'm a noob when it comes to animations, and I could use a simple example of an AlcScript-only method (I'm told this is possible) to animate an object based on a clickable trigger. Here's the scenario: I want object Button to be clickable within ClickRegion, causing objects Door1 and Door2 to move along their respective animations (IPO curves), Door1Anim and Door2Anim. What AlcScript would work with this? This is my current script, which does not work:
Is this correct? What should it look like?
Code: Select all
Button:
logic:
modifiers:
- cursor: poised
flags:
- localelement
activators:
- type: objectinvolume
remote: ClickRegion
triggers:
- any
conditions:
- type: activator
activators:
- type: picking
- type: objectinbox
satisfied: true
actions:
- type: responder
ref: :DoorOpen
actions:
- type: responder
name: DoorOpen
responder:
states:
- cmds:
- type: animcmdmsg
params:
receivers:
- 006D:Door1
animname: Door1
cmds:
- continue
waiton: -1
- type: animcmdmsg
params:
receivers:
- 006D:Door2
animname: Door2
cmds:
- continue
waiton: -1
nextstate: 1
waittocmd: 0
curstate: 0
flags:
- detecttrigger
Door1:
animations:
- name: Door1
autostart: 0
loop: 0
Door2:
animations:
- name: Door2
autostart: 0
loop: 0
Is this correct? What should it look like?