GOSUBS totally new LOOP?

Blitz3D Forums/Blitz3D Beginners Area/GOSUBS totally new LOOP?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Programs are executed line by line. The main loop can't continue until the subroutine returns so the answer is no, you don't need the frame limiting code in the subroutine also. It behaves exactly as if you'd in-lined the subroutine:

;graphics3d 800,600,16
;;; create global variables
;;;etc
;;;
;;

While not key down(0)


if time<600
time=time +1
endif
;other gosubs

;frame limiting code

end while



.othergosubs

return

Hope that helps clear things up a bit.