home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / rollerrush / game.dcr / Internal_164_tutorials.ls < prev    next >
Encoding:
Text File  |  2007-10-01  |  539 b   |  32 lines

  1. property sd, spriteNum, pOff
  2. global gLevel, gDoingTutorial, gTutorialStep
  3.  
  4. on beginSprite me
  5.   sd = sprite(spriteNum)
  6.   sd.visible = 0
  7.   sd.locZ = 500
  8.   pOff = 467
  9.   gTutorialStep = 0
  10.   if gDoingTutorial and (gLevel = 0) then
  11.     show(me, 1)
  12.   end if
  13. end
  14.  
  15. on show me, which
  16.   gTutorialStep = which
  17.   if which = 1 then
  18.     sd.memberNum = pOff + which
  19.     sd.visible = 1
  20.   else
  21.     sd.memberNum = pOff + which
  22.     sd.visible = 1
  23.   end if
  24.   if which = 14 then
  25.     sendSprite(110, #wipehelparray)
  26.   end if
  27. end
  28.  
  29. on hide me
  30.   sd.visible = 0
  31. end
  32.