home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003: The Beautiful Scenery / enter-parhaat-2003.iso / files / frendz.exe / frendz.dcr / Scripts_55.ls < prev    next >
Encoding:
Text File  |  2002-12-31  |  2.1 KB  |  65 lines

  1. global gpvNumScoreBubbles, gpvScoreBubbleFirstSprite, gNextScoreShow, gScoreShowCount, gScoreShowTimer, gScoreShowY, SCORE_SHOW_RELOAD, SCORE_SHOW_TIMER_OFF, SCORE_SHOW_OFFY, gScoreShowOffy
  2.  
  3. on moleInitScoreBubblesNewGame firstSprite, numBubbles
  4.   gpvScoreBubbleFirstSprite = firstSprite
  5.   gpvNumScoreBubbles = numBubbles
  6.   gScoreShowCount = []
  7.   gScoreShowTimer = []
  8.   gScoreShowY = []
  9.   gScoreShowOffy = []
  10.   SCORE_SHOW_RELOAD = 3 * 60 / 8
  11.   SCORE_SHOW_TIMER_OFF = 1 * 60 / 10
  12.   SCORE_SHOW_OFFY = -9
  13.   gNextScoreShow = 1
  14.   repeat with i = 1 to gpvNumScoreBubbles
  15.     pvHideScoreBubble(i)
  16.   end repeat
  17. end
  18.  
  19. on moleShowScoreBubble x, y, numPoints
  20.   sn = gpvScoreBubbleFirstSprite + (2 * (gNextScoreShow - 1))
  21.   cn = the number of member "ScoreShow1" + gNextScoreShow - 1
  22.   put numPoints into member cn
  23.   sprite(sn + 1).memberNum = cn
  24.   set the loc of sprite sn to point(x, -1000)
  25.   set the loc of sprite (sn + 1) to point(x - 26, -1000)
  26.   gScoreShowCount[gNextScoreShow] = SCORE_SHOW_RELOAD
  27.   gScoreShowTimer[gNextScoreShow] = the timer + SCORE_SHOW_TIMER_OFF
  28.   gScoreShowY[gNextScoreShow] = y
  29.   gScoreShowOffy[gNextScoreShow] = SCORE_SHOW_OFFY
  30.   gNextScoreShow = gNextScoreShow + 1
  31.   if gNextScoreShow > gpvNumScoreBubbles then
  32.     gNextScoreShow = 1
  33.   end if
  34. end
  35.  
  36. on moleShowScoreSpecial x, y, castName
  37.   sn = gpvScoreBubbleFirstSprite + (2 * (gNextScoreShow - 1))
  38.   cn = the number of member castName
  39.   sprite(sn + 1).memberNum = cn
  40.   set the loc of sprite sn to point(x, -1000)
  41.   set the loc of sprite (sn + 1) to point(x, -1000)
  42.   sprite(sn + 1).height = member(cn).height
  43.   sprite(sn + 1).width = member(cn).width
  44.   gScoreShowCount[gNextScoreShow] = SCORE_SHOW_RELOAD
  45.   gScoreShowTimer[gNextScoreShow] = the timer + SCORE_SHOW_TIMER_OFF
  46.   gScoreShowY[gNextScoreShow] = y
  47.   gScoreShowOffy[gNextScoreShow] = 0
  48.   gNextScoreShow = gNextScoreShow + 1
  49.   if gNextScoreShow > gpvNumScoreBubbles then
  50.     gNextScoreShow = 1
  51.   end if
  52. end
  53.  
  54. on pvHideScoreBubble n
  55.   x = 256
  56.   y = -1000
  57.   sn = gpvScoreBubbleFirstSprite + (2 * (n - 1))
  58.   set the loc of sprite sn to point(x, y)
  59.   set the loc of sprite (sn + 1) to point(x, y)
  60.   gScoreShowCount[n] = 0
  61. end
  62.  
  63. on pvUpdateScoreBubbles
  64. end
  65.