home *** CD-ROM | disk | FTP | other *** search
/ DIGIZINE 1 / DIGIZINE.BIN / main / sony / highdes.dir / 00021_Script_21 < prev    next >
Text File  |  1995-09-12  |  1KB  |  41 lines

  1. --rollover snake main
  2.  
  3. on enterframe
  4.   SNAKEROLL
  5. end
  6.  
  7. on exitframe
  8.   go the frame
  9. end
  10.  
  11. --------
  12.  
  13. on SNAKEROLL
  14.   if rollover(11) then --rollover the rectangular sprite area
  15.     if the mouseCast = the castNum of sprite 11 then --rollover the matted sprite area
  16.       set the locV of sprite(11) to (the locV of sprite(11) + 5)
  17.       updatestage
  18.       set the locV of sprite(11) to (the locV of sprite(11) - 5)
  19.       updatestage
  20.       exit
  21.     end if
  22.   else if rollover(12) then
  23.     if the mouseCast = the castNum of sprite 12 then
  24.       set the locH of sprite(12) to (the locH of sprite(12) + 5)
  25.       updatestage
  26.       set the locH of sprite(12) to (the locH of sprite(12) - 5)
  27.       updatestage
  28.       exit
  29.     end if
  30.   else if rollover(13) then
  31.     if the mouseCast = the castNum of sprite 13 then
  32.       set the locV of sprite(13) to (the locV of sprite(13) + 5)
  33.       updatestage
  34.       set the locV of sprite(13) to (the locV of sprite(13) - 5)
  35.       updatestage
  36.       exit
  37.     end if
  38.   end if
  39. end
  40.  
  41.