 But the learning process has been exceptional. And I know I will be able to transfer this learning over into the app side of things, but I am determined to finish this game despite having been tempted to throw it away once or twice.  Anyway here is the collisions code that works finally and the submarine changes through the 7 images to a full out explosion after the mine bops it on the head.  I have also enclosed a picture of just after the mine strikes and the sub changes.
 But the learning process has been exceptional. And I know I will be able to transfer this learning over into the app side of things, but I am determined to finish this game despite having been tempted to throw it away once or twice.  Anyway here is the collisions code that works finally and the submarine changes through the 7 images to a full out explosion after the mine bops it on the head.  I have also enclosed a picture of just after the mine strikes and the sub changes.Code: Select all
on collisions
   if 6 > gSubInterval then
      add 0.5 to gSubInterval  --determines speed of sequence of image change
   else
      put 0 into gSubInterval
      if intersect ( btn "SubExplode" , img "mine1" ) then
         if gSubExplode is 7 then
            put 1 into gSubExplode
         else
            add 1 to gSubExplode
         end if
         set the icon of btn "SubExplode" to the id of img ("blacksub" & gSubexplode & ".png" )
      end if
      --answer "oops"
      --exit to top
   end if
end collisions
So as you can see I have yet to learn how to:
1. Make the mine disappear from the script (not just hide/set visible to false since I do not want it to continue running an unnecessary script, since hidden, it will still be falling down ad finitum)
2. I need the sub to cycle through the 7 images when the intersect function begins and complete its 7 image cycle and then on the 7th image it will fall gently to the bottom. (this is easy except for the problem that when the intersect function begins, this cyclic event stops as soon as the mine passes onwards) I understand exactly why, But I have to learn how to fix this. If i make the mine disappear, and stop the script, I will still have to learn how to continue the cyclic event of the submarine exploding until completion, and then the damaged sub falls to the bottom of the ocean.
I hope I have written clearly enough and that no confusing points lurk anywhere.
Kind regards
chris