dennis Posted August 6, 2014 Share Posted August 6, 2014 Hey guys, in a FPS game a few things are really important one of them is ladders. But how to do them? cheers -dennis Quote Link to comment Share on other sites More sharing options...
gamecreator Posted August 7, 2014 Share Posted August 7, 2014 Are you using Lua or C++? In general I think the idea is to switch away from using the character controller as it's not set up to climb ladders, as far as I know. When the character gets to the ladder, use your own code to have it climb up or down. When the character leaves the ladder, switch back to using the character controller. Quote Link to comment Share on other sites More sharing options...
xtreampb Posted August 7, 2014 Share Posted August 7, 2014 or you cold have a ladder flag and if the character controller is on a ladder as indicated by the flag, set the mass of your character to 0 and when the flag indicates that the player is no longer on a ladder, the mass is then set back to the value previously. I think this would have a less of an effect on the computer. Quote bool Life() { while(death=false) { if(death==true) return death; } } I have found the secret to infinite life Did I help you out? Like my post! Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 7, 2014 Share Posted August 7, 2014 It will be a nice thing to add on project saturn. 1 Quote Link to comment Share on other sites More sharing options...
dennis Posted August 8, 2014 Author Share Posted August 8, 2014 Hey guys, Thanks for your reply!! Maybe do a raycast on the ladder, change the camrotation towards the ladder. Use the use button to start climbing sequence (from a function) then move te character to the end of the ladder. Or use the W button to start climbimg and release the character controller while climbing so if you stop climbing itvwill coke back again? Would that be a possible approach? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 8, 2014 Share Posted August 8, 2014 There are many approaches to ladder climbing. Both snapping to the ladder as well as the method you describe would work. Quote Link to comment Share on other sites More sharing options...
3Dski7059 Posted February 22, 2015 Share Posted February 22, 2015 Just reading this, though its an older post, because I was wondering the same thing. I don't know if a ray cast would be necessary if you follow the scheme I've seen followed by other games, where the ladder is actually wrapped by a specialize collider. Then, it would seem a flag could be set to tell if you're on the ladder, which would then allow moving up/down. But, you'd still need the logic that would stop you when you from moving into the floor/ceiling. Some engines I think have ladder handling built in, based on an invisible ladder texture used to wrap the bounding box of a ladder (like in the Doom III). If its not built into the engine, its examined by some script(s). Quote Link to comment Share on other sites More sharing options...
AnthonyPython Posted February 22, 2015 Share Posted February 22, 2015 Just reading this, though its an older post, because I was wondering the same thing. I don't know if a ray cast would be necessary if you follow the scheme I've seen followed by other games, where the ladder is actually wrapped by a specialize collider. Then, it would seem a flag could be set to tell if you're on the ladder, which would then allow moving up/down. But, you'd still need the logic that would stop you when you from moving into the floor/ceiling. Some engines I think have ladder handling built in, based on an invisible ladder texture used to wrap the bounding box of a ladder (like in the Doom III). If its not built into the engine, its examined by some script(s). would be nice at some point for the Leadwerks engine to handle trigger's for ladder's as like the source does as well(aggror's video on ladder's does good though for the mean time) built in crouching would be nice to. Quote OS: Windows 10 Pro CPU: i3-10100 CPU @ 3.60GHz GPU: NVIDIA 2060 Super - 8 GB RAM: 32 GB Link to comment Share on other sites More sharing options...
nick.ace Posted February 22, 2015 Share Posted February 22, 2015 There is built-in crouching. The SetInput command has a parameter for it. You need to specify the camera height though (since not everyone is going to want a camera to change position while crouching). Quote Link to comment Share on other sites More sharing options...
cassius Posted February 22, 2015 Share Posted February 22, 2015 I purchase all my characters and none so far come with a climbing animation, so ladders are out for me. I can do most things in programming or art work but animating charscters is not one of them. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
AnthonyPython Posted February 22, 2015 Share Posted February 22, 2015 I purchase all my characters and none so far come with a climbing animation, so ladders are out for me. I can do most things in programming or art work but animating charscters is not one of them. same here, I can fix and use say already existing animation, of course for my player stiff/robotic animation's is what I do need, I'll probably at least give a shot at it. Quote OS: Windows 10 Pro CPU: i3-10100 CPU @ 3.60GHz GPU: NVIDIA 2060 Super - 8 GB RAM: 32 GB Link to comment Share on other sites More sharing options...
dennis Posted February 26, 2015 Author Share Posted February 26, 2015 I purchase all my characters and none so far come with a climbing animation, so ladders are out for me. I can do most things in programming or art work but animating charscters is not one of them. 3D models and tex (former dexsoft) is selling models with climbing animations maybe something to check out. at least the new marine packs do so Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.