home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global cpictblock
- if the castNum of sprite clickOn() <> 1 then
- if the castNum of sprite 48 = 0 then
- set the castNum of sprite 48 to the castNum of sprite clickOn()
- set the castNum of sprite clickOn() to 1
- setAt(cpictblock, clickOn() - 1, 1)
- repeat with i = 2 to 42
- set the cursor of sprite i to 0
- end repeat
- else
- set cnumkeep to the castNum of sprite 48
- set the castNum of sprite 48 to the castNum of sprite clickOn()
- set the castNum of sprite clickOn() to cnumkeep
- setAt(cpictblock, clickOn() - 1, cnumkeep)
- repeat with i = 2 to 42
- set the cursor of sprite i to [243, 244]
- end repeat
- end if
- else
- if the castNum of sprite 48 <> 0 then
- set the castNum of sprite clickOn() to the castNum of sprite 48
- set the castNum of sprite 48 to 0
- setAt(cpictblock, clickOn() - 1, the castNum of sprite clickOn())
- repeat with i = 2 to 42
- set the cursor of sprite i to [243, 244]
- end repeat
- end if
- end if
- end
-