Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using Freeze Mode #145666
08/04/07 01:35
08/04/07 01:35
Joined: Jul 2006
Posts: 91
Florida, USA
Knuckles Offline OP
Junior Member
Knuckles  Offline OP
Junior Member

Joined: Jul 2006
Posts: 91
Florida, USA
Is there another method I can use besides Freeze_Mode in order to prevent the player from moving on the screen?
Everytime I use freeze_mode the game crashes. I have no idea why... I'm using it in an IF statement, so I'm not sure why it's crashing. Does freeze_mode stop all functions from running as well?

Re: Using Freeze Mode [Re: Knuckles] #145667
08/04/07 03:27
08/04/07 03:27
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
When freeze_mode= 1, all entity functions stop running. When freeze_mode= 2, all functions stop running.

Maybe if you could post your code, that would help.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Using Freeze Mode [Re: MrCode] #145668
08/05/07 00:54
08/05/07 00:54
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
you don't need to check if freeze_mode == anything

All Actions/functions are paused at the next wait statement until freeze_mode is set back to 0;


xXxGuitar511
- Programmer
Re: Using Freeze Mode [Re: xXxGuitar511] #145669
08/07/07 17:30
08/07/07 17:30
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
jcl had this to say last May. I don't know if it was fixed.

Quote:

freeze_mode 1 freezes all functions that started while the my entity pointer was nonzero - and as this pointer can have a random state while pressing a key or button, the problem occurs. Try the following workaround: add a "my = NULL" at the beginning of all functions that should continue to run when freeze_mode is 1.

This will be fixed in the next update.






Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1