HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] Need Help With 3rd person hack and slash camera  (Read 1356 times)

st34lthest

  • General Accounts
  • *
  • Posts: 3
    • View Profile

Hi,
im abit stuck on my game camera system,
im just wondering on how to make a fixed camera,
and which moving the mouse left and right turns the character,
kinda like gears of war,
and also how to make the left mouse button become the melee attack
i just need a tutorial, or someone to point me in the direction to find out how

ive tried finding 3rd person camera Tutorials, but no luck

I'd Appreciate any help possible!
« Last Edit: Nov 02, 12, 09:46:07 PM by HE-Cooper »
Logged

DarkOMEN

  • General Accounts
  • *
  • Posts: 16
    • View Profile

Hi,
im abit stuck on my game camera system,
im just wondering on how to make a fixed camera,
and which moving the mouse left and right turns the character,
kinda like gears of war,
and also how to make the left mouse button become the melee attack
i just need a tutorial, or someone to point me in the direction to find out how

ive tried finding 3rd person camera Tutorials, but no luck

I'd Appreciate any help possible!
I recommend following this tutorial, as it does a lot of what you're asking for. Just use a different offset for the camera to move the point of view to behind the shoulder instead of at eye level, and do not turn off rendering of the character.

http://hewiki.heroengine.com/wiki/First_Person_Camera_Tutorial

In E_ACCControllerClassMethods, there should be a section of code that references turning the character when the camera has settled.  I'm willing to bet you can simplify that bit to get the turning control that you want.  I'd be more specific, but I'm not at home to look it up for you.  Hope that helps!
Logged

st34lthest

  • General Accounts
  • *
  • Posts: 3
    • View Profile

no idea how i missed that tutorial on the wiki,
but thank you very much,
its helped me alot, i appreciate it!  :D

now i just need to know how to change the left mouse button into the melee button :)

Logged

st34lthest

  • General Accounts
  • *
  • Posts: 3
    • View Profile

does anyone know which script would control something that can make the left click become a melee attack?
thanks in advance
Logged

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile

Not knowing how youve implemented your combat, I can't speak to the ability or animation side, but you would simply change the gamekeybindings.ini file to make LMB be whatever you like. Or add a command layer, etc. the keybindings wiki entry has more specifics.
Logged