verbaloid Posted January 8, 2014 Share Posted January 8, 2014 The default player walks steadily, but how do you script it to kinda sway down\sideways with each step\landing, the way they do in commercial games? (I understand that there probably are different ways to implement it depending on C#, C++ or LUA, but since there's no separate section in this forum for Lua, I'm posting here). Quote Link to comment Share on other sites More sharing options...
Rick Posted January 8, 2014 Share Posted January 8, 2014 The Curve function is handy to make something like this: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/math/mathcurve-r602 You can use this to bob the camera entity up and down and left and right smoothly over time. I personally get physically sick with modern games that do this but it can add some realism. I'll play around with the FPS script to see if I can get something because I'm sure many people would want this. 2 Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 8, 2014 Share Posted January 8, 2014 While I don't get motion sick from games, my friend does. If you include it, consider having the option to turn it off in the menu. That said, it does make it more realistic if not exaggerated. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 8, 2014 Share Posted January 8, 2014 Like Rick said, apply a little rotation with the Curve function on the z axis of the camera. 1 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.