Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (miwok, AndrewAMD, TipmyPip, 3run, 1 invisible), 633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | chip programmers | 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