Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Gravity on Slopes [Re: 82RJZAE] #339709
08/28/10 19:44
08/28/10 19:44
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
you can adjust move_friction to avoid that


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Gravity on Slopes [Re: painkiller] #339736
08/28/10 21:25
08/28/10 21:25
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
How so? Increasing move_friction still allows the character to be able to scale slopes:

I have created a sample level using the same scripts you uploaded: http://www.mediafire.com/?3tnwx63ydbme38t

Re: Gravity on Slopes [Re: 82RJZAE] #339751
08/28/10 23:09
08/28/10 23:09
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
well, that's because in the handle_movement() function, at the end, there is a move_friction=0, delete it of set it to 1 and you will see that the player can't go up stairs.

Last edited by painkiller; 08/28/10 23:11.

3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Gravity on Slopes [Re: painkiller] #339755
08/29/10 00:13
08/29/10 00:13
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
The player can't go up the stairs if you hold the movement keys down. If you tap the keys instead, the player can still move up the stairs and scale the walls.

Re: Gravity on Slopes [Re: 82RJZAE] #339785
08/29/10 10:32
08/29/10 10:32
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
Then you can do what I said in another post before, make a c_trace in front of the player and substract the first hit.z from the second hit.z and if the difference is bigger than a "x" value, then don't allow the player to move forward


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Gravity on Slopes [Re: painkiller] #339949
08/30/10 06:06
08/30/10 06:06
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Wouldn't you still run into the problem where you can't assume the player is moving forward into a slope? The player could be strafing or moving backwards which would make a second c_trace useless unless you could somehow use it on all sides!

I would also still run into my original problem where the player would not be able to overstep stairs.

What I am simply looking for is something like how the gravity is applied to the player in the A5 templates. Here is a sample level I put together using the template which demonstrates what I mean: http://www.mediafire.com/?ftbdvztm5r5waya Can anyone simplify the template code or explain how it is done?

Re: Gravity on Slopes [Re: 82RJZAE] #339954
08/30/10 07:20
08/30/10 07:20
Joined: May 2009
Posts: 5,367
Caucasus
3run Online
Senior Expert
3run  Online
Senior Expert

Joined: May 2009
Posts: 5,367
Caucasus
Converted the main movement part in to lite-c, here you go:
Download link
I hope this is what you was looking for. Enjoy.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Gravity on Slopes [Re: 3run] #339998
08/30/10 18:02
08/30/10 18:02
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Thanks 3run! Is there any reason why when you move up a steep slope or stairs that it pushes you in a direction relative to the object's orientation?

See this example: http://www.mediafire.com/?t2pez9a7ua59b50

Page 2 of 2 1 2

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