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 / Help! how to make smoother 3D Movement?

Author
Message
AreCustomize
10
Years of Service
User Offline
Joined: 22nd Dec 2013
Location: Cyberspace
Posted: 5th Feb 2017 13:37 Edited at: 5th Feb 2017 17:10
Hi!

I'm trying to make basic FPS game and I have got my CharacterController and camera working properly but I have one question.
How can I make my character move diagonally which is possible basically in any 3D game?

Currently I'm using following script:


but trying to do this (diagonal movement), it doesn't work:




-AreCustomize
"Anyone who has never made a mistake has never tried anything new."
-Albert Einstein
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 6th Feb 2017 20:16
Rotate your character 45 degrees and move him forwards
AGK V2 user - Tier 1 (mostly)
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 6th Feb 2017 22:06
workaround?
Quote: "
d=1-d

if GetRawKeyState( 32 )
print(32)
if d=0 then Move3DPhysicsCharacterController( objID, 1, WalkVelocity )
if d=1 then Move3DPhysicsCharacterController( objID, 3, WalkVelocity )
endif
"
AGK (Steam) V2017.01.09 : Windows 10 Pro 64 Bit : AMD (16.12.1) Radeon R7 265 : Mac mini OS Sierra (10.12.2)

Login to post a reply

Server time is: 2024-11-17 17:11:27
Your offset time is: 2024-11-17 17:11:27