Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/27/26 13:15
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (TipmyPip, alx, Martin_HH, 1 invisible), 5,110 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gravity and Force #137604
06/22/07 05:09
06/22/07 05:09
Joined: Jul 2006
Posts: 28
B
burning_devil Offline OP
Newbie
burning_devil  Offline OP
Newbie
B

Joined: Jul 2006
Posts: 28
Hi, I am making a fighting game and I am having trouble with the physics of the game. My problem is that my character has no force or ground friction, he just floats in the air. Is there any way to fix this problem?

Re: Gravity and Force [Re: burning_devil] #137605
06/22/07 07:34
06/22/07 07:34
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
You mean that your players levitate?
If yes, you need (for the beginning) simple gravity to keep your players on the ground.
Code:
 
function gravity
{
while(me)
{
vec_set(temp, my.x);
temp.z -= 500;
trace_mode = IGNORE_ME + IGNORE_PASSABLE + IGNORE_SPRITES;
result = trace (my.x, temp);
my.z -= result;
wait(1);
}
}




Never say never.

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