home *** CD-ROM | disk | FTP | other *** search
- property spriteNum
- global gBaseRotation, gPause
-
- on beginSprite me
- sprite(me.spriteNum).rotation = 0
- mouseLoc = point(580, 220)
- end
-
- on exitFrame me
- if gPause = 0 then
- sprite(me.spriteNum).rotation = the mouseH - 290
- gBaseRotation = sprite(me.spriteNum).rotation
- if sprite(me.spriteNum).locH < 151 then
- sprite(me.spriteNum).locH = 151
- end if
- if sprite(me.spriteNum).locH > 427 then
- sprite(me.spriteNum).locH = 427
- end if
- if sprite(me.spriteNum).rotation > 60 then
- sprite(me.spriteNum).rotation = 60
- end if
- if sprite(me.spriteNum).rotation < -60 then
- sprite(me.spriteNum).rotation = -60
- end if
- end if
- end
-