Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Exiting to menu.; Always crashes
Topic Started: Nov 26 2007, 09:23 AM (200 Views)
Linkin
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Ok so in my game i have a menu room which is done with normal gm functions, and then i have the play room which is in ultimate3d.

In my Control Objects Esc event i have this
Code:
 

with(all){
if(persistent==false)
instance_destroy();}
SwitchView();
external_call(global.u3d_cleanup);
room_goto(RM_Menu);
instance_destroy();

It exits to menu but when i try click play again it just doesnt load. :blink:
Posted Image
Want something done in Photoshop, make a request Here

Formerly known as DS-Development.
Offline Profile Quote Post Goto Top
 
harkathmaker
Member Avatar
Persistent Enquirer
[ *  *  *  *  * ]
My game did this sometimes, I find it's best to destroy all U3D objects when the room is exited (except for the control object of course). :lol:

Is the game still running (does the fps rate change, debug works, etc.), or does the whole thing lag completely? If it's the former, usually the screen isn't being drawn. Maybe? :unsure:
Offline Profile Quote Post Goto Top
 
Linkin
Member Avatar
Forum God
[ *  *  *  *  *  * ]
Well it completly freezes up, like i have to use ctrl,alt,del to close it.
Posted Image
Want something done in Photoshop, make a request Here

Formerly known as DS-Development.
Offline Profile Quote Post Goto Top
 
harkathmaker
Member Avatar
Persistent Enquirer
[ *  *  *  *  * ]
When does the game create the control object? If there's two, I think that may be the problem. :unsure:
Offline Profile Quote Post Goto Top
 
Linkin
Member Avatar
Forum God
[ *  *  *  *  *  * ]
No there can never be too because im doing this in the Controls Create event.
Code:
 

if(instance_number(Control)>1){
instance_destroy();}
Posted Image
Want something done in Photoshop, make a request Here

Formerly known as DS-Development.
Offline Profile Quote Post Goto Top
 
MysteriXYZ
Member Avatar
Master Matrix Masher
[ *  *  *  *  *  * ]
If you do that, the following code in the Destroy Event of that 2nd instance shuts down Ultimate 3D:
Code:
 
external_call(global.u3d_cleanup);

I would avoid creating a 2nd instance of the control object.
U3D is like candy; after extensive consumption, it's Best to brush.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply