Fall through the floor, bug

Non-platform specific questions.

Fall through the floor, bug

Postby AnimeTank » Mon May 07, 2007 11:46 pm

I'm working on my latest game but as you all know... i have a problem. :oops:

I have my main character set up and everything but theres a serious bug. Everytime my character walks to a certain part of the floor, he falls through! Is there anyway i can prevent this from happening? Please send a reply if you know. Thanks. :wink:
Current Projects:

Some game about some guy... :)

Message me if you have an XboxLive account. Then send me a Friend Request to my Gamertag, AnimeTank.
Message me if you have a WoW account. Then tell me what server your on, along with your name.
User avatar
AnimeTank
 
Posts: 96
Joined: Sat May 05, 2007 10:37 pm
Location: At my House, on my computer, in my seat
Score: 13 Give a positive score

little more help please

Postby d-soldier » Tue May 08, 2007 12:13 am

Circumstance is the key for helping you with this problem... how about a little information??? Is this part of an actor (ground) that the player normally walks on fine, but falls only in a certain spot? Are you using a tiled actor, just an image, filled/wireframe region? Without this kind of information it's difficult to understand what/where your problem is...
The generic answer is check to be sure that the your player has a collision event (physical response, with the "repeat while colliding" box checked to yes) for ALL ACTORS he is to be walking on.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby Troodon » Tue May 08, 2007 5:14 am

And if you fall only after jumping, it means that the floor is too thin or you are going too fast.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Tue May 08, 2007 8:23 pm

tekdino wrote:And if you fall only after jumping, it means that the floor is too thin or you are going too fast.

or your repeat is set to 0,
to remove this you can make a variable called position,
and on the draw actor event,
Code: Select all
position = y;

(if it is falling you need help with)
and when you hit the ground on any side-> script editor,
Code: Select all
if(y > collide.y && position <= collide.y)y = (collide.y - collide.height /2) - height / 2);

:D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby AnimeTank » Tue May 08, 2007 9:45 pm

Thanks! :D
Current Projects:

Some game about some guy... :)

Message me if you have an XboxLive account. Then send me a Friend Request to my Gamertag, AnimeTank.
Message me if you have a WoW account. Then tell me what server your on, along with your name.
User avatar
AnimeTank
 
Posts: 96
Joined: Sat May 05, 2007 10:37 pm
Location: At my House, on my computer, in my seat
Score: 13 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest