Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Damian on August 06, 2011, 03:57:35 AM

Title: Exit
Post by: Damian on August 06, 2011, 03:57:35 AM
Well sometime the users want to exit the game :o
So I need to make a button for that to.
In normal code its not a problem to do it, but with playmaker I dont find anything that do work.
If I use unity3D code I can use this for a button:
Code: [Select]
Application.Quit();

But I cant find this action anywhere.
Title: Re: Exit
Post by: qholmes on August 06, 2011, 09:33:08 AM
Just make an action for it then...

I actually just put the normal little script in for Escape but did not attach it to a button. But it would be pretty easy to add an exit action i think.

Q
Title: Re: Exit
Post by: Damian on August 06, 2011, 10:12:45 AM
Just make an action for it then...

I actually just put the normal little script in for Escape but did not attach it to a button. But it would be pretty easy to add an exit action i think.

Q

I guess I have not learned that yet. lol.
How do I make this exit button with an script?
If i can use script to then it is just awesome.
That will solve many things in the future.

Title: Re: Exit
Post by: qholmes on August 06, 2011, 11:30:36 AM
I will look at it later... i was thinking it would be handy as well.. What i would do is just make an Action that does the Application.Quit i guess.. then you can make your button events etc and if someone presses it you end up at the Quit Action.. make sense?

Q
Title: Re: Exit
Post by: Damian on August 06, 2011, 12:01:16 PM
I will look at it later... i was thinking it would be handy as well.. What i would do is just make an Action that does the Application.Quit i guess.. then you can make your button events etc and if someone presses it you end up at the Quit Action.. make sense?

Q

Im surprised that playmaker dont have it. Its one thing you do need for android/iphone if you want to quit the game.
I have still no idea on how to make my own actions.
So this a big stop for me to be able to finish it.
Sure I can solve it on other ways, but none is a good way.