Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,519 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | 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