Camera changes to MovementType RPG

camelmed

New member
Hello,

Im using the RPG View/Movement but i want to make a little change.

o) rotate the character by mouse without the need to press a key. The character should always rotate on mousemove.
(I tried to set AllowFreeMovement to always return true in my MovementType that is a copy of RPG but it did not work.)
o) rotate the camera with mousemove while a key is pressed without rotating the character. The character should move in the direction he is facing not the camera is facing aslong as the key is pressed.

How can i do this?
 
1. The rotation is controlled within the RPG View Type when m_FreeMovement is enabled. You'll likely want to modify when this variable is set.
2. This will take some modification with the RPG Movement Type. The character rotates when the m_Rotate field is enabled.
 
Thanks, i'll look at this

Edit:
Okay that was easy. My MovementType is now a copy of RPG with OnStartRotate and OnStopRotate switched (plus an initial call of OnStartRotate())
and the ViewType is also a copy of RPG but with the rotate function of Adventure.
 
Last edited:
Top