Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 472 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
character wedged between objects #472340
04/22/18 00:15
04/22/18 00:15
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I am having a problem where some objects appear close together, and the player can attempt to jump or climb in between them. When he gets about half way through, he gets stuck. He is wedged in between two sloped surfaces and can no longer move.

I have attempted to use "in_solid" to prevent this, but that does not seem to be the problem. The conditions do not actually place the character inside of the solid objects.

Is there a way to prevent this (outside of using a standard hull for collisions - as I want the player to be able to walk on these surfaces normally via polygon collision)?

Is there a way to detect this kind of wedging?

I am just looking for some kind of general example at this point, an arrow in the right direction if possible...

Last edited by Dooley; 04/22/18 00:15.
Re: character wedged between objects [Re: Dooley] #472343
04/22/18 08:32
04/22/18 08:32
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I guess in your movement code your player is marked as falling/sliding in that case?
You could do it the Borderlands way and check if the player doesn't change position significantly while in these states for a second or so. Then just allow them to jump and you should be able to get out of there.

In general you should try to keep the possibility from that to happen low.


POTATO-MAN saves the day! - Random
Re: character wedged between objects [Re: Kartoffel] #472357
04/23/18 05:38
04/23/18 05:38
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I opted to give the player a jet pack. It's a space game, and I was considering that anyway. So the player does not have to be standing on the ground to jump anymore, and it solved the problem.


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