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 / EndSection not working on project

Author
Message
Sir_Herbert
11
Years of Service
User Offline
Joined: 6th Nov 2013
Location: The InterWebz
Posted: 7th Nov 2013 19:18
I have been working on editing a game for a school class. I have edited it so that when you collide with a certain fruit (the id is 650) that the game will gosub a different endsection. I copied and pasted the original endsection and made it EndSection2 instead of EndSection. The endsections are at the bottom and the second one at the very bottom. Any help is appreciated








Sasuke
19
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 8th Nov 2013 05:19
Since it's a Gosub your missing a Return on the end, so:

EndSection:
<your code>
return

Btw, you didn't state how it's not working which makes us have to guess. In future be alittle bit more descriptive when stating your issue

"Get in the Van!" - Van B

Login to post a reply

Server time is: 2025-05-16 06:54:14
Your offset time is: 2025-05-16 06:54:14