2 registered members (henrybane, 1 invisible),
775
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Problem !!!
[Re: Mafia_IR]
#346423
11/05/10 16:28
11/05/10 16:28
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
Serious User
|
Serious User
Joined: Jul 2008
Posts: 1,178
England
|
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
OP
Member
|
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 .
Last edited by Mafia_IR; 11/05/10 16:51.
|
|
|
Re: Problem !!!
[Re: Mafia_IR]
#346430
11/05/10 17:19
11/05/10 17:19
|
Joined: Jul 2008
Posts: 1,178 England
MrGuest
Serious User
|
Serious User
Joined: Jul 2008
Posts: 1,178
England
|
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 . try using 0 and not 10? if you're using a mouse map, you'll also need to change the mouse_mode
#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: Mafia_IR]
#346437
11/05/10 18:50
11/05/10 18:50
|
Joined: Aug 2010
Posts: 131 Iran
Mafia_IR
OP
Member
|
OP
Member
Joined: Aug 2010
Posts: 131
Iran
|
Hey MrGuest ,pervuse problem is solved . now an other : what is problem in this 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: jane]
#346487
11/06/10 12:18
11/06/10 12:18
|
Joined: Aug 2010
Posts: 131 Iran
Mafia_IR
OP
Member
|
OP
Member
Joined: Aug 2010
Posts: 131
Iran
|
Thanks Jane (?)(and richi007 for the previous question ![smile smile](/ubb7/images/graemlins/default_dark/smile.gif) ) , but it isn't my problem now ! my code still isn't work , i can not open the game levels ! ![frown frown](/ubb7/images/graemlins/default_dark/frown.gif) Before I run, I have an error message : Wrong type for struct initialization . <VECTOR path_nodepos = { x=0;y=0;z=0;}> ???
Last edited by Mafia_IR; 11/06/10 12:20. Reason: my 3DGS version is free
|
|
|
|