Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (AndrewAMD, ozgur), 1,415 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how to movement? #222530
08/19/08 20:04
08/19/08 20:04
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
hio, when i try to use movement codes "c_move" it doesnt work with physics it doesnt work (myplayer is guard model)

Code:
action myplayer()
{


myplayer = me;

    ph_setgravity (vector(0, 0, -386)); 
    phent_settype (myplayer, PH_RIGID, PH_BOX); 
    phent_setmass (myplayer, 3, PH_BOX); 
    phent_setfriction (myplayer, 80);
    phent_setdamping (myplayer, 40, 40); 


    while (1)
    {

    	if(key_w)
    	{
    	ent_animate(myplayer, "walk", walk_percentage, ANM_CYCLE);
 walk_percentage += 3 * time_step; 
 c_move (my, vector(15*time_step, 0, 0), nullvector, GLIDE);
    
        }
        
        wait(1);
}

	
}


and if i try following codes, when i try move, my objects falls down, cant stay on foot;

Code:
action myplayer()
{

myplayer = me;

    ph_setgravity (vector(0, 0, -386)); 
    phent_settype (myplayer, PH_RIGID, PH_BOX); 
    phent_setmass (myplayer, 3, PH_BOX); 
    phent_setfriction (myplayer, 80);
    phent_setdamping (myplayer, 40, 40); 


   
    while (1)
    {
    	if(key_w)
    	{

        myplayer_speed.x = 5 ;
        myplayer_speed.y = 0 ;
        myplayer_speed.z = 0; 
        phent_addvelcentral (myplayer, myplayer_speed); 
        }
        wait(1);
}



what kind of movement codes i need and physics works on human model?

Last edited by justgamefreak; 08/19/08 20:05.
Re: how to movement? [Re: justgamefreak] #222541
08/19/08 21:19
08/19/08 21:19
Joined: Aug 2008
Posts: 16
J
justgamefreak Offline OP
Newbie
justgamefreak  Offline OP
Newbie
J

Joined: Aug 2008
Posts: 16
sovled, just down friction.


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