Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with simple 2d shooter

Author
Message
patchwilde
14
Years of Service
User Offline
Joined: 29th Mar 2012
Location:
Posted: 8th Oct 2013 01:00
Help anyone who can figure out what's wrong with this code: essentially the missile won't show up on either ship, though other functions work fine. Here's the code, it's from Hands On DarkBasic Pro pg 666-671



sorry if i didn't post properly (code snippet)
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Oct 2013 20:50
All I get is a blank screen and:

Runtime Error 1 [Broke from nested subroutine. Cannot resume program after CLI usage.]

Looks like you're calling functions from within functions... personally I wouldn't do that, but then again I don't use functions I only use subroutines!


D.D.
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 11th Oct 2013 01:42
Quote: "Looks like you're calling functions from within functions"

So? Nothing wrong with that.

Quote: "I don't use functions"

You should.

Login to post a reply

Server time is: 2026-07-07 23:02:02
Your offset time is: 2026-07-07 23:02:02