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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,040 guests, and 5 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
c_move problem - passable when move !|? #216339
07/16/08 15:58
07/16/08 15:58
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
hi guy
when i use c_move instruction my model get in the wall .
but no get out of wall it's stay in the middle wall .

thanks



Code:
function main{
	level_load("new2.wmb");
	wait(5);
}
entity* main_robot;
action my_robot_act{
	main_robot=me;wait(1);camera_pos_func();
	while(1){
		wait(time_step);
		//move forward
		if(key_w){
			c_move(me,vector(15*time,0,0),nullvector,GLIDE);my.skill11+=1;
			ent_animate(me,"Frame",my.skill11,ANM_CYCLE);wait(time_step);
		}
		//move backward
		if(key_s){
			c_move(me,vector(-15*time,0,0),nullvector,GLIDE);my.skill11-=1;
			ent_animate(me,"Frame",my.skill11,ANM_CYCLE);wait(time_step);
			if(my.skill11<0){my.skill11=100;
			}
		}
		//move left
		if(key_d){
			c_move(me,vector(0,-15*time,0),nullvector,GLIDE);wait(time_step);
		}
		//move left
		if(key_a){
			c_move(me,vector(0,15*time,0),nullvector,GLIDE);wait(time_step);
		}
		
		}
	}
}



dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: c_move problem - passable when move !|? [Re: fat32] #216342
07/16/08 16:12
07/16/08 16:12
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
First , make shure your walls arent passable. After that , see if any other function might be making your player passable. And finaly , play with the my.fat / my.narrow flags. Also see if your player starts in the middle of that wall.

PS.:Your walls might be too thin , your model could have faces with wrong 'normals'. There could be another 20 reasons smile Try playing around with everything , because your script looks fine to me. And if you are using A6.4 or lower , try ent_move instead of c_move...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: c_move problem - passable when move !|? [Re: EpsiloN] #216718
07/18/08 12:48
07/18/08 12:48
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
ok.thank's
but my problem is continues. i use "my.fat / my.narrow flags" for my robot and have little change, but any why my model get in the wall .mdl or block .

how can fix this trouble?


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!
Re: c_move problem - passable when move !|? [Re: fat32] #216731
07/18/08 14:02
07/18/08 14:02
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Forgot to mention... c_setminmax(me)
If nothing works (also try making the wall thicker) copy your .mdl file into a new folder. Create a new level , completely different from your original level and create a new test function for movement. Add a sky , floor... If this doesnt solve it , than something is wrong with eighter your model or your 3DGS copy.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: c_move problem - passable when move !|? [Re: EpsiloN] #216765
07/18/08 18:31
07/18/08 18:31
Joined: Jul 2007
Posts: 69
fat32 Offline OP
Junior Member
fat32  Offline OP
Junior Member

Joined: Jul 2007
Posts: 69
thanks .i use different model (wmb , fbx) and solve my problem


dobidob hosein_dig and max_man7000 game

HAPPY NEW YEAR !!

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