playMaker

Author Topic: MouseLook Problem  (Read 1716 times)

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
MouseLook Problem
« on: April 23, 2015, 01:10:20 PM »
I am using Mouselook with my camera.

My problem is :
- Y axis is broken (Vertical Rotation on X)

When returning a second time on the MouseLook state, it performs a sort of random rotation reset on the same axis.


How can i fix this ?

thx





redikann

  • Full Member
  • ***
  • Posts: 174
Re: MouseLook Problem
« Reply #1 on: April 23, 2015, 01:34:46 PM »
Are you leaving this state for game mechanic purposes? I like my Mouselook action to have it's own FSM. That way it's always running and not interrupted by other logic needs.

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: MouseLook Problem
« Reply #2 on: April 23, 2015, 03:13:23 PM »
Hi,

I would like my MouseLook to work only when pressing a key.
But when i release the key, and then return back i get this "reset/bug".

Could you tell me more about your idea ?
(i understand the way of having a specific FSM for the MouseLook, +global event, but i cant see how to make it works (record) when pressing a key.)

« Last Edit: April 23, 2015, 03:54:33 PM by vonpopov »

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: MouseLook Problem
« Reply #3 on: April 23, 2015, 06:13:02 PM »
I finaly solved it, making my own script from this one :

http://hutonggames.com/playmakerforum/index.php?topic=1719.0


Nb : i add sensivity and i removed the getx i didn't need ;)
works perfect.



« Last Edit: April 23, 2015, 06:38:27 PM by vonpopov »