Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (henrybane, 1 invisible), 775 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 4 1 2 3 4
Re: Problem !!! [Re: Liamissimo] #346287
11/03/10 18:57
11/03/10 18:57
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
Do you know how can i convert the special game obj to".mdl" or ".3ds" or 3D max files ?

Re: Problem !!! [Re: Mafia_IR] #346422
11/05/10 16:16
11/05/10 16:16
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
how can i show my mouse arrow when the game menu is show and how can hide it when my menu is hide ? "my video screen mode is full screen" .

Thanks .

Re: Problem !!! [Re: Mafia_IR] #346423
11/05/10 16:28
11/05/10 16:28
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Code:
if(is(panel_name, SHOW)){
   mouse_pointer = 0;
}else{
   mouse_pointer = 1;
}



Re: Problem !!! [Re: MrGuest] #346426
11/05/10 16:48
11/05/10 16:48
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
i was used :
if(menu.flags = SHOW)
mouse_pointer = 10;

before ,now i use:

if(is(menu, SHOW)){
mouse_pointer = 10;
}else{
mouse_pointer = 1;
}

but no difference . frown

Last edited by Mafia_IR; 11/05/10 16:51.
Re: Problem !!! [Re: Mafia_IR] #346427
11/05/10 17:01
11/05/10 17:01
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try to use mouse_mode = 0,1 or 2 to solve it


Visit my site: www.masterq32.de
Re: Problem !!! [Re: Mafia_IR] #346430
11/05/10 17:19
11/05/10 17:19
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: Mafia_IR
i was used :
if(menu.flags = SHOW)
mouse_pointer = 10;

before ,now i use:

if(is(menu, SHOW)){
mouse_pointer = 10;
}else{
mouse_pointer = 1;
}

but no difference . frown
try using 0 and not 10?

if you're using a mouse map, you'll also need to change the mouse_mode
Code:
#include <acknex.h>
#include <default.c>

BMAP* arrow = "arrow_1.tga";

void main(){
	
	wait(1);
	mouse_map = arrow;
	mouse_mode = 4;
	
	while(1){
		
		while(!key_cud){ wait(1); } //press cursor key down to continue
		mouse_mode = 0;
		mouse_pointer = 0;
		
		while(!key_cuu){ wait(1); } //press cursor key up to continue
		mouse_mode = 4;
		mouse_pointer = 1;
		
		wait(1);
	}
}

press up then down to toggle

Re: Problem !!! [Re: MrGuest] #346433
11/05/10 17:44
11/05/10 17:44
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
When i use screen_mode = 2 i have no problem but when i use screen_mode = 1 i have this problem .

Re: Problem !!! [Re: Mafia_IR] #346437
11/05/10 18:50
11/05/10 18:50
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
Hey MrGuest ,pervuse problem is solved .

now an other :
what is problem in this code :
Code:
action patrol_path()
 {
 	VECTOR path_nodepos ;
 	VECTOR temp ;
  result = path_scan(me,my.x,my.pan,vector(360,180,1000));
  if (result == 0) { return; }
 
  var node = 1;
  path_nodepos(my,node,my.skill20);
 
  while (1)
  {
    var angle[3];
    result = vec_to_angle(angle,vec_diff(temp,my.skill20,my.x));
    if (result < 25) {
      node = path_nextnode(my,node,1);
      path_nodepos(my,node,my._TARGET_X);
    }
 
    my.pan = angle[0];
    my.skill1 += 3*time_step;
    c_move(me,vector(3*time_step,0,0),NULL,GLIDE);
    ent_animate(me,"walk",my.skill1,ANM_CYCLE);
    wait(1);
  }
}



Last edited by Mafia_IR; 11/05/10 18:51.
Re: Problem !!! [Re: Mafia_IR] #346452
11/05/10 21:58
11/05/10 21:58
Joined: Nov 2008
Posts: 216
J
jane Offline
Member
jane  Offline
Member
J

Joined: Nov 2008
Posts: 216
here is a tread with the same problems:

http://www.opserver.de/ubb7/ubbthreads.p...true#Post316992

and a happy end.

Last edited by jane; 11/05/10 22:03.
Re: Problem !!! [Re: jane] #346487
11/06/10 12:18
11/06/10 12:18
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
Thanks Jane (?)(and richi007 for the previous question smile ) , but it isn't my problem now ! my code still isn't work , i can not open the game levels ! frown Before I run, I have an error message :

Quote:
Wrong type for struct initialization .
<VECTOR path_nodepos = { x=0;y=0;z=0;}>


??? confused

Last edited by Mafia_IR; 11/06/10 12:20. Reason: my 3DGS version is free
Page 3 of 4 1 2 3 4

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