Well I wouldn't use Timers or Goto.
When the key is pressed, set a counter to say 100. Have your drawimage draw frame 1 if the counter is say >80 and frame 2 if the counter is <= 80 and maybe nothing if 0. This will mean it stays on frame 1 for 20% of the time and frame2 for 80% if this is what you meant. Or just chance the split to 50/50 whatever.
Then reduce the counter everytime the function is called (i.e. once every frame or fixed logic iteration). Also prevent fire from being pressed if counter>0.
Say you had lots of frames and you wanted non regular timing on them, you could make an array with values for how long each frame is displayed (in frames/loop iterations) then when drawing compare the counter value with the values in the array to work out if the frame should change yet. Rather than looping through the array to check, you should just keep a track of the current frame and read the next frame's counter value from the array to compare against. I hope this makes sense as I haven't spent a long time spelling it out, sorry.
When the key is pressed, set a counter to say 100. Have your drawimage draw frame 1 if the counter is say >80 and frame 2 if the counter is <= 80 and maybe nothing if 0. This will mean it stays on frame 1 for 20% of the time and frame2 for 80% if this is what you meant. Or just chance the split to 50/50 whatever.
Then reduce the counter everytime the function is called (i.e. once every frame or fixed logic iteration). Also prevent fire from being pressed if counter>0.
Say you had lots of frames and you wanted non regular timing on them, you could make an array with values for how long each frame is displayed (in frames/loop iterations) then when drawing compare the counter value with the values in the array to work out if the frame should change yet. Rather than looping through the array to check, you should just keep a track of the current frame and read the next frame's counter value from the array to compare against. I hope this makes sense as I haven't spent a long time spelling it out, sorry.