Sargeant12344 Posted May 30, 2016 Share Posted May 30, 2016 Title Quote Link to comment Share on other sites More sharing options...
reepblue Posted May 30, 2016 Share Posted May 30, 2016 Close the window, or have a global bool set to true on start up, then have a script make it false. in Main.lua in the while loop: if running == false then return end Example: -- Quit the game! running = false Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
cassius Posted May 30, 2016 Share Posted May 30, 2016 in my game if he main character is killed the game ends. I use TIME delay of 5000 then "Exit" Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Sargeant12344 Posted May 31, 2016 Author Share Posted May 31, 2016 Okay Thanks for all the help! Quote Link to comment Share on other sites More sharing options...
dennis Posted June 3, 2016 Share Posted June 3, 2016 You can try to return a false at the end of your loop. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.