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.

Newcomers DBPro Corner / How to Lift

Author
Message
B++
14
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 7th Dec 2009 23:15
Hi,
Can someone give me some idea as How to create a lift. When in or on and pressing \"E\" key will activate the lift and goto and stop on second floor.

Regards

Your Signature Here;
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 8th Dec 2009 15:31
I would use invisible boxes and collision detection.

B++
14
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 8th Dec 2009 16:37
Ok thanks I got some idea, like in my game my player can pick up ammo, so I have to do it same way and move the lift but how will I stop the lift?

Regards

Your Signature Here;
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Dec 2009 18:06
Keep checking the Y position of the lift, and stop it moving once it reaches the required height.

Or perhaps use another invisible box to indicate the top of the lift shaft?

Hope that helps

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
B++
14
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 8th Dec 2009 19:09
Thank you CyborgArt and =PRoF=, I found a thread posted by Sofwizz in Code Snippet section. Here is the link. It might help others too.
http://forum.thegamecreators.com/?m=forum_view&t=157213&b=6&p=0

Regards

Your Signature Here;

Login to post a reply

Server time is: 2024-11-16 09:21:34
Your offset time is: 2024-11-16 09:21:34