Slow Down Certain Frame

BlitzPlus Forums/BlitzPlus Beginners Area/Slow Down Certain Frame

I have a sprite with 2 frames. When I press space I want my pistol to fire. It does, but way too fast. I want frame 2 to last longer before it resets back to 1. I have tried a few methods, but none have worked. My latest attempt is listed below:

Function Pistol()

If waitforreset = True
frameTimer=CreateTimer(60)
WaitTimer(frameTimer)
waitforreset = False
Goto drawmorefirst
EndIf

pframe = 0

If KeyHit(57) Then
pframe = 1
waitforreset = True
EndIf

.drawmorefirst
DrawImage pistol,200,230,pframe


End Function