Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 6th Apr 2011 05:13
Hi. i made an object that moves up to down and it has all the collisions set but when i jump on it if it is going up I have to jump to stay on or I will fall through. While it goes down though it is fine. Can someone please help me figure it out. I can post the code down if you want. Thanks for the help.

God help me, Please.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 6th Apr 2011 06:40
I not exacly shure what your asking, I would help otherwise


My software never has bugs, it just develops random features.
C4: silly putty for men.
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 6th Apr 2011 14:51
@Commico Inc
So My player jumps on a moving step. The step moves up and down automatically. If I'm on the step going down it works ok but if it goes up my player is stuck in the same spot and the step moves right through him.

God help me, Please.
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 6th Apr 2011 16:06 Edited at: 6th Apr 2011 16:07
The moving step is an elevator. But when the elevator goes up my person falls through. I want to know how to fix that. I want my person to move with the y position of the elevator. And yes I tried

Even that didn't work. I'm guessing that some code in my game is countering this code. Any Help? Thanks.

God help me, Please.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 6th Apr 2011 16:44
Im not shure about this one, I would give sparky's a go and see if it fixes your problem


My software never has bugs, it just develops random features.
C4: silly putty for men.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 6th Apr 2011 16:50
I would suggest that you increase the Y position of your character until there are no more collisions. That will be a bit jerky, but might let you get on with other things while you decide what to do about elevators.

Sparky's has a couple of options - I'm sure the advanced collision stuff, like automatic response position would help out or take care of it for you. One option I would probably try though is working out the exact Y height where the player is standing, from the top of the players head to below their feet. That way, you can just set the Y position to suit that collision - like move the elevator then work out the height of the floor, with an intersection check. That might keep it smooth and accurate, but it depends a great deal on how your handling collisions.

Health, Ammo, and bacon and eggs!
sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 7th Apr 2011 00:19
I have some good elevator code some place, I see if I can find it.
renny

Life is not fair, so deal with it.
http://www.gusroundtable.com/
2Beastmode4u
15
Years of Service
User Offline
Joined: 14th Feb 2011
Location: Loading...
Posted: 7th Apr 2011 01:32
Quote: "I have some good elevator code some place, I see if I can find it."

That would be great any help is welcome.


Quote: "I would suggest that you increase the Y position of your character until there are no more collisions... I'm sure the advanced collision stuff, like automatic response position would help out or take care of it for you. One option I would probably try though is working out the exact Y height where the player is standing, from the top of the players head to below their feet. That way, you can just set the Y position to suit that collision - like move the elevator then work out the height of the floor, with an intersection check. That might keep it smooth and accurate, but it depends a great deal on how your handling collisions."


Exactly how should I do that? Should i print my objects position on screen?

God help me, Please.

Login to post a reply

Server time is: 2026-07-17 14:00:00
Your offset time is: 2026-07-17 14:00:00