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.

AppGameKit Studio Chat / Correct AGK Script Command To Quit Game?

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 5th Aug 2020 02:32
Hi,

What is the proper AppGameKit script command to quit the game?
Let us know, thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Kevin Picone
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 5th Aug 2020 07:50 Edited at: 5th Aug 2020 07:50

The should be an END statement

PlayBASIC To HTML5/WEB - Convert PlayBASIC To Machine Code
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 5th Aug 2020 10:28
Hi,

Thanks for the reply to our question.

If we do "end" to quit the game we have a problem:
On Android mobile devices, when we run the game again it is unresponsive
and shows error message at top-left: "Tap/click the screen to exit" ?

Any ideas?
Thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 5th Aug 2020 14:46
Are you broadcasting to Android or running directly on the device?


PSY LABS Games
Coders don't die, they just gosub without return
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 5th Aug 2020 15:50 Edited at: 5th Aug 2020 16:50
Hi,

Built an Android APK file and installed to device.
Running on the device.

EDIT # 1: "Directly"

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JRNTexas
12
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 5th Aug 2020 17:23
Can you place the line of code you are using to end or how you get to, "end"?
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 5th Aug 2020 18:52
Any options or config file that could cause this?
Any files open? I don't know how that is handled or whether or not that could cause an error like this


PSY LABS Games
Coders don't die, they just gosub without return
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 5th Aug 2020 18:53
it's my understanding that we can't truly END on Mobile where it will send the app to the background, instead?

similar to HTML where we/the user should simply close the browser, we should go through the device OS to properly close the app (except desktops).

Quote: ""when we run the game again it is unresponsive... Tap/click the screen to exit" "
is the message we get when there's a crash/error, right? i'm guessing that the app is still "running" in the background/as mentioned above, when you're trying to relaunch?
[My Itch.io Home]
[CODE lang=AGK] Your Code Here [/CODE]
[VIDEO=youtube] VideoID [/VIDEO]
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 6th Aug 2020 01:01
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 6th Aug 2020 01:08
I don't think i have ever seen a mobile app with an exit button
PSY
Developer
7
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 6th Aug 2020 01:43
I published 2 games for Android, both have one


PSY LABS Games
Coders don't die, they just gosub without return
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 6th Aug 2020 11:49
I don't understand the hatred towards an [Exit] button on mobile devices...
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 6th Aug 2020 22:22 Edited at: 6th Aug 2020 22:23
Android likes to keep everything running in the background, games use this for notifications and such.

I am pretty sure the recommended way to exit an app on droid is to catch the back button (Escape), exit the loop and then end

try this

Login to post a reply

Server time is: 2024-03-29 15:39:51
Your offset time is: 2024-03-29 15:39:51