local bye_spirit = false;
local move_begin = false;
local energy_is_off = false;
function ActionsJump ()
    
end;
function gameinput (sender,obj_id,attachedID)
    if sender==30 then --комикс завершился
        StopRotate(17)
      DeleteResource("comics13_1_01");
      DeleteResource("comics13_1_02");
      DeleteResource("comics13_2_00");
      DeleteResource("comics13_vert");
      DeleteResource("comics13_skip");
      DeleteResource("comics13_ztm");
      flags.is_comics=false    
      setcurentleaf("another_world",21,0); 
      rebattle=true
      WaitRender();
    return;end;
    
    if sender==33 then
        if obj_id==502 then
             WaitRender();
        return;end;
    return;end;
    
    if sender==36 then
        if obj_id==5435 then
                ScaleObject(7,1,5,2,209,324);
        addfade(502,0)
        speciale_action(4,502)
        SetAlfa(502,0,1,1)
        return;end
        if obj_id==88850 then
           clear_satelite_leaf("another_world");
        return;end;
    return;end;
    
    if sender==15 then
      if obj_id==6 then
        if counter<3 then
        -- set_visible_object(6,true)
        --    speciale_action(2,6,true,0.5)
        end;
      return;end;    
    return;end;
    if sender == 16 then
      if obj_id==7 then

      return;end;

      if obj_id == 17 then
        RotateObject(17,0,360,15,true);
        StartTimer(2222,1)
        speciale_action(2,1100);
        speciale_action(4,1100);
      return; end;
    return; end;
    
    if sender == 100 then
      AddGlobalFade(9777778,0)
      SetAlfa(9777778,0,1,0.5)        
      StartTimer(88850,1);      
      
    return; end;
    
    
    if sender == 6 then
      WaitRender();
    return; end;
        
    if sender == 1 then --кликнули левой кнопкой мыши на активный объект
      WaitRender();
    return;end;

end
function SheetSwitched(nCount)
end;