• 0

    posted a message on [Trigger] 3rd Person Movement
    Quote from ztl001: Go

    how to make it move backward by pressing s

    You can copy/paste the move forward code, but change the key pressed to <s> and make the unit move -1 distance int direction of camera yaw. This will make it so the unit always run towards the camera when you pressed <s>.

    Posted in: Tutorials
  • 0

    posted a message on [Trigger] 3rd Person Movement

    I currently have a version where the camera will not pan. I did this by locking the camera input from the user. Whenever i left-click it disables the lock and allows the user to move the camera. When the left-click is released, the lock is reapplied. The only downside is the user can no longer zoom in when not holding down left-click. However, that can be fixed with a simple trigger that turn the lock off when the mouse wheel is moved.

    Posted in: Tutorials
  • 0

    posted a message on [Trigger] 3rd Person Movement

    Oh, ok. I see what you mean. I guess currently you either have to choose one of two compromises: shaky camera or panning camera. Unless you are able to turn off camera panning when the mouse hits the side of the screen. Ill be looking at way to fix this and get back to you if I find anything.

    Posted in: Tutorials
  • 0

    posted a message on [Trigger] 3rd Person Movement

    Here it is. Currently it works very similar to yours except that your mouse shows, you can click to attack/move, and when you left click it will move the camera in the direction of the mouse (which can be used to turn, just like yours). However, I get an error when I left click saying the execution took too long, despite it working as intended. Take a look and tell me what you think.

    Posted in: Tutorials
  • 0

    posted a message on [Trigger] 3rd Person Movement

    @Kylegar: Go

    Yeah, the camera will move around with the mouse as if it is a normal game until the unit you want it to follow is on screen. To fix this, set the starting camera to be on or near your unit so that it locks to that unit at the start of the game. After that, the camera should not pan away from that unit and will follow without the stuttering effect.

    Posted in: Tutorials
  • 0

    posted a message on [Trigger] 3rd Person Movement

    Great, guide! However, you don't need to set the camera bounds. If you take out "set camera bounds" when you set the camera and in "update camera" "camera follow for player 1" will auto follow the player without the jumpy animation.

    Posted in: Tutorials
  • To post a comment, please or register a new account.