TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
how to make quit button?
Pages:
1
how to make quit button?
ervin0408
Posts: 9
September 18, 2014, 04:25:57 am
guys ..
how to make a "quit button"
I want to close game after pressed Quit button ..
sdieters
Posts: 2068
September 18, 2014, 05:30:25 am
Like i said on the FB page. It depends on what platform =)
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
ervin0408
Posts: 9
September 18, 2014, 05:37:56 am
platform ?? i used android .. do you know how to do it ? can u pls share on me... ! please ..
sdieters
Posts: 2068
September 18, 2014, 05:48:18 am
add this in a custom code block >> nme.system.System.exit(1)
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
ervin0408
Posts: 9
September 18, 2014, 05:52:45 am
after that ?
sdieters
Posts: 2068
September 18, 2014, 05:53:44 am
nothing haha.
simply trigger an event when you press a certain actor and run this code
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
ervin0408
Posts: 9
September 18, 2014, 06:00:39 am
ah ok maraming salamat
imean thank you
sdieters
Posts: 2068
September 18, 2014, 06:01:20 am
what language is that? =p
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
ervin0408
Posts: 9
September 18, 2014, 06:02:08 am
i'll put it into the scene or on actor ?
ervin0408
Posts: 9
September 18, 2014, 06:02:39 am
it's tagalog/Filipino language
sdieters
Posts: 2068
September 18, 2014, 06:02:56 am
doesnt matter. but it would make more sense to place it on your exit button actor.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
ervin0408
Posts: 9
September 18, 2014, 06:04:37 am
ah ok thank you very much sir ..
ervin0408
Posts: 9
September 18, 2014, 06:06:07 am
sir .. how about .. if i used flash as platform .. what code will be use ?
sdieters
Posts: 2068
September 18, 2014, 06:17:40 am
you cant close a flash game. only for android apps, and standalone games
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p
Pages:
1