Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 1 invisible), 620 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Quick jump code issue [Re: Superku] #312832
02/26/10 15:08
02/26/10 15:08
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
Hey thanks for all the help SuperKu.
I have tried to do the dist_down > 5 I get the same results when I run and then jump, so that is not the issue I was looking at all the other mdls created in 3dgs and they are .hmp files for the terrains, so my question becomes how do you take a mdl that you created in Maya and then covert it to a .hmp or terrain file?

Re: Quick jump code issue [Re: Tman] #312953
02/27/10 06:25
02/27/10 06:25
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
You can't really convert a mdl to a terrain heightmap (unless maybe you made a gray scale overview map of it and imported it to MED or something).

If you assign the terrain model the polygon flag like Superku said (click the polygon checkbox in WED, of by script like said above) the c_ functions will use polygon collision on the model, so it should behave similar to a terrain. You could also do with with any model you want to use for geometry where blocks won't cut it. In some cases it may be better to use invisible blocks for collision or to keep entities out of complex geometry.

Entity running up a model using c_move. Model has polygon set.


Hope that helps. laugh

Another picture showing a model being used like a terrain.


Last edited by Rich; 02/27/10 18:12.

A8 com / A7 free
Re: Quick jump code issue [Re: Rich] #313298
02/28/10 17:09
02/28/10 17:09
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
That helps alot, I thought the model I was using for terrain was to have polygon set to it only, now I get. I have one more issue but I do that other problem fixed. How do I set my model to land when it moving and I am jumping on a hill or slope? When I press the jump key and move on a flat surface he lands correctly but when I am moving and I press jump on a hill or slope he stay in the air until he gets to a flat surface. How do I change that?

Re: Quick jump code issue [Re: Tman] #313463
03/01/10 16:30
03/01/10 16:30
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
do you mean that it slides down the slope when you land on one?

If so then that would be that your gravity is kicking in and needs to be adjusted. I had this problem for a while, gravity will drag the object down the slope.

If not then I'm not quite sure what you mean by moving on a slope?

Good luck.


A8 com / A7 free
Re: Quick jump code issue [Re: Rich] #313476
03/01/10 17:18
03/01/10 17:18
Joined: Oct 2009
Posts: 60
T
Tman Offline OP
Junior Member
Tman  Offline OP
Junior Member
T

Joined: Oct 2009
Posts: 60
That is exactly right Rich, when he is going up or down the slope and I press jump he stays elevated until I hit a flat surfae but I think that I fixed it now. Thanks for the reply.

Re: Quick jump code issue [Re: Tman] #313483
03/01/10 18:05
03/01/10 18:05
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
No problem, seeing that you've been hitting snags with movement (as I did for a long time, still do) maybe you would like to look at this "tutorial in progress" I was writing (I stopped).

http://www.ninjawarriors.net/pages/rich-lockard/a7-movement-tutorial-beta/page1.php

Its not complete, probably has a bunch typos, but maybe it will help you somewhere. It stops at gravity, no jump code or anything like that, but I think setting a 'ground offset' will help you with slopes. You could set your gravity to 'turn on' anytime the trace hits a slope with a certain normal (seeing your other post about adjusting the tilt of the entity, same thing).

Let me know what you think, I think I suck at this so wink

Good luck.

Last edited by Rich; 03/01/10 18:16.

A8 com / A7 free
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