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
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
1 registered members (AndrewAMD), 1,534 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Collision with terrains #99336
11/20/06 18:04
11/20/06 18:04
Joined: Nov 2006
Posts: 70
UK!
erbismi Offline OP
Junior Member
erbismi  Offline OP
Junior Member

Joined: Nov 2006
Posts: 70
UK!
I have made a great looking terrain (HMP), but the collision detection isn't working for it. I seem to fall through the floor at random places. Does anyone know how to solve this problem. i'm using the player_move action for movement.


-www.llamastormgames.page.tl
Re: Collision with terrains [Re: erbismi] #99337
11/20/06 23:00
11/20/06 23:00
Joined: Sep 2006
Posts: 32
S
swbluto Offline
Newbie
swbluto  Offline
Newbie
S

Joined: Sep 2006
Posts: 32
I've had problems with terrains and collision in the past, and through my searches, I found it was an ent_move problem(Even the head programmer here, JCL, admitted it) and the A5 script template action "Player_move" uses ent_move. So the solution would be A) abandoning terrains and opting for blocks or B) Doing something I've never done before with ent_move(And I've tried many different things for many many hours my friend) or C) Upgrading to the A6 templates and use their "BiPlayer_move" something or another action instead or D) Re-write the player_move(I'd suggest copying it beforehand because it's really easy to mess up the templates) code to use C_move or write your own code that uses C_move. If you're not much of a programmer or don't really want to stumble through the process of figuring how to get c_move to work(Like I did), I could just send you my code and you could modify it for your purposes.

I would go into a detailed analysis of why I suspect ent_move doesn't work with terrains but it's just speculation.

Of course, if you've stretched your terrain to ginormous proportions, that may be causing your falling-for-it syndrome. I also noticed that I tended to fall through terrain where the slope was greater then 40-50 degress with ent_move, so you could probably just ensure your hills and mountains aren't steeper than that. If you aren't up for that restriction(I sure wasn't), then you'd probably have to use c_move or use the A_6 template scripts. Since I'm the do-it-yourselfer coder, I opted for my own custom code with c_move.

Last edited by swbluto; 11/20/06 23:01.
Re: Collision with terrains [Re: swbluto] #99338
11/21/06 11:56
11/21/06 11:56
Joined: Nov 2006
Posts: 70
UK!
erbismi Offline OP
Junior Member
erbismi  Offline OP
Junior Member

Joined: Nov 2006
Posts: 70
UK!
thanks. I'll try rewriting player move i think. It didn't occur to me before. I tried using the newton terrain system, but it didn't get it to work. I tried using the A6 templates at first, but i didn't really understand them. For the moment the A5 templates is all i need for my FPS game.


-www.llamastormgames.page.tl
Re: Collision with terrains [Re: erbismi] #99339
11/21/06 12:35
11/21/06 12:35
Joined: Oct 2006
Posts: 11
...on the .NET
Child_OnLine Offline
Newbie
Child_OnLine  Offline
Newbie

Joined: Oct 2006
Posts: 11
...on the .NET
I had almost the same problem... and to solve it used invisible/non-passable blocks... I placed them over the areas I had problems with (a big block for the floor and smaller blocks for collision with slopes greater than 50 degress)

It's not the perfect solution but it worked just fine for me...


------------------------------- ||At War With Reality... || -------------------------------
Re: Collision with terrains [Re: Child_OnLine] #99340
11/21/06 12:49
11/21/06 12:49
Joined: Jan 2003
Posts: 4,305
Damocles Offline
Expert
Damocles  Offline
Expert

Joined: Jan 2003
Posts: 4,305
Have you checked:

c_updatehull(terrain,1);

whenever I manpuleted the terrain ingame, I had the player falling thought the terrain too,
by using updatehull this was fixed.

Re: Collision with terrains [Re: Damocles] #99341
11/21/06 19:23
11/21/06 19:23
Joined: Jul 2006
Posts: 511
Germany,NRW
KMS Offline
User
KMS  Offline
User

Joined: Jul 2006
Posts: 511
Germany,NRW
my.narrow=off;
my.fat=off;
my.polygon=on;
would perhaps help you?


You need full animated lowpoly-fishes?Look at
http://www.projekt-3d.de/pages/shop2pag.html
Re: Collision with terrains [Re: KMS] #99342
11/21/06 20:48
11/21/06 20:48
Joined: Nov 2006
Posts: 70
UK!
erbismi Offline OP
Junior Member
erbismi  Offline OP
Junior Member

Joined: Nov 2006
Posts: 70
UK!
OK, i,ve tried rewriting player_move with c_move, and i've switched polygon on, i dont manipulate the terrain in game anyway, but i still have the same problem. would Biplayer_move work with the A5 weapons templates? i can actually understand them, unlike the a6 weapon templates which i cant.


-www.llamastormgames.page.tl
Re: Collision with terrains [Re: erbismi] #99343
11/23/06 12:03
11/23/06 12:03
Joined: Nov 2006
Posts: 70
UK!
erbismi Offline OP
Junior Member
erbismi  Offline OP
Junior Member

Joined: Nov 2006
Posts: 70
UK!
I wrote my own movement script, and now it all works fne, no falling through the floor!! Thanks everyone for your help.


-www.llamastormgames.page.tl

Moderated by  HeelX, rvL_eXile 

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