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 (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
Page 3 of 3 1 2 3
Re: pause game but camera active [Re: Shinobi] #259981
04/08/09 12:38
04/08/09 12:38
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
U not understanding wat am doing. Its not a game. Its a playback of simulation results from a file.

I read values from a file and make entities move around according to the values given in the file. Its like a playback.

So i would like a pause button in between to pause the playback, but i should still be able 2 move my camera around to visualize the scene.

hope u get wat i mean to say.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: Shinobi] #259986
04/08/09 13:13
04/08/09 13:13
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline
User
Shinobi  Offline
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
It wasn´t really clear before , now it is.

You should use freeze_mode=1 like i mentioned before .... freze_mode=1 freezes only entity and particle functions and you camrea function should still run.
Not tested your code but it should work.

Re: pause game but camera active [Re: delinkx] #259997
04/08/09 13:48
04/08/09 13:48
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
After some testing, I see whats happening, but cant see an EASY way to fix it.
When you hit pause,
The pause function then freezes everything except itself, right.
Then the pause function calls camera-oneframe, cool.
Then the pause function calls wait(1), WHICH FREEZES ITSELF! ... BAD.

The only answer I can see is to use freeze_mode = 1.
That only freezes functions whose have a MY pointer that is not NULL.
So Im afraid delinkx, the big job youve got is this.
Any function you want to leave running, must have a MY=NULL; before its while loop.
Any function you want to pause, must have a MY=something; before its while loop.
note: a simple MY=1; is sufficient (tested).
Once thats done, you can ditch my split-camera-function system, just make sure
THE camera function starts with MY=NULL; just to be safe.

Need any help, let us know.

If you need help


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: pause game but camera active [Re: EvilSOB] #259998
04/08/09 13:57
04/08/09 13:57
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
ok.. kool. i will give a try on tat. thnx a lot.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: delinkx] #260000
04/08/09 14:04
04/08/09 14:04
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
let us know how it goes.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: pause game but camera active [Re: delinkx] #260001
04/08/09 14:04
04/08/09 14:04
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
still not happening. i must have been missing something somewhere.. but not getting it.. EvilSOB.. i will PM u and send u the full code.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: delinkx] #260008
04/08/09 14:36
04/08/09 14:36
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Sor anyone curious.... copied from PM


But anyway, to make functions pause when using FREEZE_MODE = 1,
put me = ent_create(NULL,NULL,NULL); as the FIRST line of the function
and ent_remove(me); as the LAST line of the function

Now freeze_mode = 1 will pause this function.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: pause game but camera active [Re: EvilSOB] #260133
04/09/09 03:09
04/09/09 03:09
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
kool.. now it works ! thnx dude.. ! cheers !


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: delinkx] #260135
04/09/09 03:27
04/09/09 03:27
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Anytime buddy.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 3 of 3 1 2 3

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