home *** CD-ROM | disk | FTP | other *** search
/ Game Programming - All in One (3rd Edition) / game_prog_all_in_one_3rd_ed.iso / start.exe / start.dxr / 00003_Frame Loop.ls < prev    next >
Encoding:
Text File  |  2006-09-19  |  343 b   |  16 lines

  1. on exitFrame me
  2.   if the frame = 4 then
  3.     if sprite(1).blend < 99 then
  4.       sprite(1).blend = sprite(1).blend + 2
  5.     else
  6.       if sprite(4).blend < 50 then
  7.         sprite(4).blend = sprite(4).blend + 2
  8.         sprite(5).blend = sprite(5).blend + 2
  9.       else
  10.         go(the frame + 1)
  11.       end if
  12.     end if
  13.   end if
  14.   go(the frame)
  15. end
  16.