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 / Exit and or End

Author
Message
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 14th Jan 2018 11:57
Does anyone know the difference between using End or Exit to shutdown a program (in Windows) or are they the same ?

Lance
puzzler2018
User Banned
Posted: 14th Jan 2018 12:03 Edited at: 14th Jan 2018 12:04
End - terminates app

Exit is used to come out of loops - like For loops upon a condition (if statement)

Hope this helps
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 14th Jan 2018 12:04
EXIT will exit from current loop (DO/LOOP, WHILE/ENDWHILE, REPEAT/UNTIL, FOR), END will terminate the app altogether.
13/0
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 14th Jan 2018 12:34
Thanks for the reply . The Do - Loop is considered a running Loop then ? When making a program running on Windows is it better to have an 'End' button or just use the ' X ' on the windows title bar ? I Have had AppGameKit for a couple of months now and for the most part it's pretty easy to use . Wish there were actual examples on all the commands .

Lance
puzzler2018
User Banned
Posted: 14th Jan 2018 13:32
We all have to start from somewhere

Maybe perhaps follow your nose through some tutorials

https://forum.thegamecreators.com/thread/218638

Hope this will get you started well - i always refer to some on my developments

Rick Nasher
7
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 14th Jan 2018 16:47 Edited at: 14th Jan 2018 17:10
You can use something like this:

Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 14th Jan 2018 20:41
Thanks for all the help . I already have a working map editor with save and load . I just wanted to make sure that I exit the program the best way . I v'e spent around 6-8 hrs. so far on it . Nothing special , just your basic dungeon crawler like Wolfenstien and Doom . It's been a good way to spend the winter months .

Lance
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Jan 2018 08:45
AGK doesn't care if you use END or not, it will simply drop out of the end of the program. But for clarity in your program, it is good practice to use it.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt

Login to post a reply

Server time is: 2024-11-23 01:11:29
Your offset time is: 2024-11-23 01:11:29