Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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