<?xml version="1.0" ?>

<Scene name="PhysicsLab03">

	<Audio source="chapter4"/>
	<Audio source="ambient_fuse_room"/>	

	<!-- Hidden objects -->
    <Object type="HiddenObject" name="green_crystal_02_visible" item="lab_green_crystal" image="ho_green_crystal_02" x="796" y="418" />
	
	<if t="$charging_fuse">
		<Object type="ImageBox" image="scene_new_fuse_charge" x="458" y="189" />
		<Object type="ImageBox" image="scene_fusebox_fixed_03" alpha="0" x="0" y="62">
			<Animator type="AlphaChanger" function="sine" offset="0" amplitude="255" speed="2"/>
			<Animator type="AlphaChanger" offset="0" amplitude="255" speed="0.5" delay="0.25"/>
			<Animator type="AlphaChanger" periods="5" function="sine" offset="245" amplitude="10" speed="2" delay="2.25"/>
			<Animator type="AlphaChanger" offset="255" amplitude="-255" speed="1" delay="5"/>
		</Object>
		<Animator type="DelayedAction" time="7">
			<Action type="PlaySound" sound="fuse_done"/>
			<Action type="AddItem" item="charged_fuse" reset="0"/>
			<Action type="SetVar" var="fuse_charged" value="1" reset="0"/>			
			<Action type="Say" key="FUSE_CHARGED"/>			
			<Action type="UnlockScene"/>			
			<Action type="SetVar" var="charging_fuse" value="0" reset="1"/>
		</Animator>
	</if>
	
	<!-- Actions -->
	<Action color="FFFF00" type="Composite">
		<Action type="PlaySound" sound="steps"/>
		<Action type="SwitchScene" scene="PhysicsLab01" effect="zoom"/>
	</Action>
	<Object type="ActionArrowMarker" x="700" y="575" color="FFFF00" image="ui.gui/ss_marker" angle="330" clickthrough="1"/>
	
	<Action color="FF0000" condition="not $fuse_charged" type="ItemAction" cursor="question">
		<Action itemaction="noitem" type="Say" key="FUSE_CHARGER_LOOK"/>
		<Action itemaction="fuse" type="Composite">
			<Action type="LockScene"/>
			<Action type="PlaySound" sound="fuse_charging"/>
			<Action type="RemoveItem" item="fuse" reset="0"/>
			<Action type="Say" key="CHARGING_FUSE"/>
			<Action type="SetVar" var="charging_fuse" value="1" reset="1"/>
		</Action>
	</Action>

	
</Scene>