This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.
See the Indie Bundle Try it for freelocal anim = getObject("ActiveAnimations[Power]")
if getObject("Conditions[condition_name]"):getBool(VConditionValue) then
anim:setValue(VAnimationFirstFrame, 2); anim:setValue(VAnimationLastFrame, 2)
else
anim:setValue(VAnimationFirstFrame, 1); anim:setValue(VAnimationLastFrame, 1)
end
function setAnimFrames(ani, v1, v2)
anim = getObject("ActiveAnimations[" .. ani .. "]")
anim:setValue(VAnimationFirstFrame, v1); anim:setValue(VAnimationLastFrame, v2)
end
setAnimFrames("Power", 1, 1) -- name of animation (case sensitive), first frame value, last frame value.
"GetObject (" ActiveAnimations [Power] "): setValue (VAnimationLastFrame, 1)".
setAnimFrames("animation_name", 1, 1)
setAnimFrames("animation_name", 2, 2)
if condition 'powerwhatsitactive' is true
execute a script 'setAnimFrames...'
end if