Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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
1 registered members (AndrewAMD), 1,507 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: pause game but camera active [Re: unknown_master] #258782
04/02/09 05:00
04/02/09 05:00
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
for me freeze_mode 1 doesnt stop my running.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: unknown_master] #258959
04/03/09 08:22
04/03/09 08:22
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
so here i need to freeze all functions except the keyboard and camera. camera is been able to work by the above codes. but the keyboard entries still now.. any idea how we can go through this.


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

Joined: Feb 2008
Posts: 3,232
Australia
Just guessing, but maybe un-freeze at the start of Camera_OneFrame_Function
and re-freeze at the end?


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

Joined: Jul 2008
Posts: 553
Singapore
nopes this also nothing friend.. i guess JCL should maybe improve the freeze function to be more flexible.


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

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Looks like i misunderstood you , you want the camera action to run while pause ?

you really should read more about "freeze_mode" ... i think freeze_mode=1 is what you need not freeze_mode=2.

If you set freeze_mode to 1 and not setting it from an entity , its action should run while pause.

Re: pause game but camera active [Re: Shinobi] #258982
04/03/09 10:20
04/03/09 10:20
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
i did go through the manual. I did try freeze_mode 1. But my simulation still runs. There is no pause.


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

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
I still dont know wich part of the game you want to be in pause mode and wich didnt....

Maybe you should post more from the Code so we can help you alot better.

Re: pause game but camera active [Re: Shinobi] #259416
04/06/09 05:19
04/06/09 05:19
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
ok. wat basically my program does it simple:
1. read a file containing (x,y,z) positions.
2. using this data i move my entities around.

Its like a playback.

And my code structure is as follows:
Code:
#include <acknex.h> 	
#include <default.c> 
#include "mtlFX.c" 	
//define vars
...
...

//Camera function

function Camera_OneFrame_Function()
{
 
   //normal contents of camera action while loop
   if(key_w)  camera.x += 5 * time_step;
   if(key_s)  camera.x -= 5 * time_step;
   if(key_a)  camera.y += 5 * time_step;
   if(key_d)  camera.y -= 5 * time_step;
   
 
} 

action Normal_Camera_Action()
{
	 while(1)
	 {
	 	//default lite-c camera
	 	Camera_OneFrame_Function();
 	  	wait(1);
	 }
	 	
}

//function pause
function pause()
{
	if(freeze_mode == 2)
		{
			freeze_mode = 0;
		
		}
	else
		{
		freeze_mode = 2;
		
		}
	while(freeze_mode==2)
	{
		
		Camera_OneFrame_Function();
		wait(1);
	}
}


//file reading and entities motion
function load_file()
{
  //read file line by line
  .. 
  .. 
  ..

  //move each entity
  .. 
  ..
  ..
}

//Main function
function main()
{

  //set video modes, mouse modes
  ...
  ...
  
  //load level
  level_load(strLevel);
  wait(2);

  Normal_Camera_Action();
  

  //create pause key
  on_p = pause;
  
  //file reading and entities motion
  load_file();
}

  



if u still need the full code, let me know ur email i forward 2 u.



A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: pause game but camera active [Re: delinkx] #259967
04/08/09 12:02
04/08/09 12:02
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline OP
User
delinkx  Offline OP
User

Joined: Jul 2008
Posts: 553
Singapore
anyone ??


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

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Do you want the game to be in Pause mode while you want to playback from the file ?

More Informations in detail about what your looking for can help .

Page 2 of 3 1 2 3

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