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.

AppGameKit Classic Chat / Create3DPhysicsCharacterController() I cannot grasp how to move a character!

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 5th May 2016 10:59
How would you move a object that has been set for a 3DPhysicsCharacterController, using Move3DPhysicsCharacterController seems to apply the velocity continually which is not what I want in case of making a platformer, the jumping is fine !
Hail to the king, baby!
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 5th May 2016 13:16
This is what I do in my Zelda game. The key input bit is pseudocode as I use a proprietary system I've made to allow for simple text file based key remapping regardless of any/all inputs used.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 5th May 2016 17:03 Edited at: 5th May 2016 18:04
Thanks for the help, I decided to code like so:



Using both getrawkeypressed() and getrawkeyreleased() to get what I needed.

This is part of a bigger beast, which is a recode of some 3d level editor I have been working on for some time now, here is a vid showing the movement put in!


I have Noticed a bit of jerkyness to it all though, yet doing mostly the same with using the other physics commands seemed fine ,which I might resort to as there is no way of reading if the character is jumping up or falling down!...
Hail to the king, baby!

Login to post a reply

Server time is: 2024-04-18 23:39:34
Your offset time is: 2024-04-18 23:39:34