home *** CD-ROM | disk | FTP | other *** search
/ FHM 100 Bombázó Ajándék CD / fhm_hu_1997.iso / fhm.exe / fhm.dxr / 00012.ls < prev    next >
Encoding:
Text File  |  2001-03-18  |  1.6 KB  |  56 lines

  1. on mozgass_csajok_csik where
  2.   global csajok_csik_h, which_csaj, whichpage, run_anim
  3.   if where = "back" then
  4.     x = 1
  5.   else
  6.     x = -1
  7.   end if
  8.   which_csaj = which_csaj - x
  9.   if which_csaj < 1 then
  10.     which_csaj = 39
  11.   end if
  12.   if which_csaj > 39 then
  13.     which_csaj = 1
  14.   end if
  15.   if run_anim or (whichpage = "bigcsaj") then
  16.     csajok_csik_h = the locH of sprite 10 + (x * 142)
  17.   else
  18.     set the locH of sprite 10 to the locH of sprite 10 + (x * 2)
  19.     repeat with n = 1 to 4
  20.       csajok_csik_h = the locH of sprite 10 + (x * 35)
  21.       set the locH of sprite 10 to csajok_csik_h
  22.       updateStage()
  23.     end repeat
  24.   end if
  25.   if csajok_csik_h < -2169 then
  26.     csajok_csik_h = 3227
  27.   end if
  28.   if csajok_csik_h > 3227 then
  29.     csajok_csik_h = -2169
  30.   end if
  31.   set the locH of sprite 10 to csajok_csik_h
  32.   updateStage()
  33.   if whichpage = "csaj" then
  34.     set the member of sprite 21 to "csaj_nev_" & which_csaj
  35.     set the member of sprite 22 to "csaj_text_" & which_csaj
  36.     set the member of sprite 16 to "csaj_kiskep_" & which_csaj
  37.     updateStage()
  38.   end if
  39.   if whichpage = "bigcsaj" then
  40.     set the member of sprite 21 to "csaj_kisnev_" & which_csaj
  41.     set the member of sprite 22 to "csaj_text_" & which_csaj
  42.     updateStage()
  43.   end if
  44.   if whichpage = "szavazas" then
  45.     set the member of sprite 21 to "csaj_nev_" & which_csaj
  46.     set the member of sprite 22 to "csaj_text_" & which_csaj
  47.     set the member of sprite 16 to "csaj_kiskep_" & which_csaj
  48.     updateStage()
  49.   end if
  50.   if whichpage = "bigcsaj" then
  51.     set the member of sprite 23 to "csaj_big_" & which_csaj
  52.     puppetTransition(28, 0)
  53.     updateStage()
  54.   end if
  55. end
  56.