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.

Newcomers AppGameKit Corner / Going to a certain line in your code

Author
Message
JustinC
7
Years of Service
User Offline
Joined: 5th May 2017
Location: Belgium
Posted: 17th Jul 2017 16:05
Is there a command or code that sends you to a certain line in your code when a specified condition is met?
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 17th Jul 2017 18:21
You can go to a document and press CTRL + L and type line number to go to a specific line. Are you thinking of something like breakpoints? https://forum.thegamecreators.com/thread/214831
13/0
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 18th Jul 2017 16:08
you mean goto or gosub?
these are normally seen as bad to use and you should try use functions instead but goto works like this



basically you define the line to jump to using a variable and add : to the line that is to be jumped to.
life\'s one big game
spec= 2.6ghz, 1gb ram, 512mb gpu, directx 9.0c, dbpro and classic

Login to post a reply

Server time is: 2024-11-22 07:59:48
Your offset time is: 2024-11-22 07:59:48