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 Discussion / function to main

Author
Message
koolaid 2764
21
Years of Service
User Offline
Joined: 30th Sep 2003
Location: Atlanta, Georgia
Posted: 19th Feb 2005 04:19
i need to know how to return from a function to the code from which it was called.from the new game option it goes to the story screen and then to the intro movie(which is just put as a function)but after its done playing i need to return to begin the main game?

KOOLAID
mathkid
20
Years of Service
User Offline
Joined: 1st Feb 2005
Location: Central Massachusetts
Posted: 22nd Feb 2005 00:46
The endfunction command at the end of your function returns to the place where the function was called. If you want to return from the middle of a function, use exitfunction.

Login to post a reply

Server time is: 2025-05-23 18:55:08
Your offset time is: 2025-05-23 18:55:08