playMaker

Author Topic: MouseLook - for mobile  (Read 91 times)

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
MouseLook - for mobile
« on: April 12, 2017, 02:04:05 AM »
Hello there,

I'm trying to have a "tap & drag" feature on a mobile app. Basically I want to tap... drag my finger in order to look around my scene.

MouseLook works ok... kind of.

The problem with the MouseLook on the phone is that the TAP itself is registered as a "look at" or something.

Let me explain:

1. I Tap (in order to do the drag to look around) and the camera imediatly "looks" exactly where I tapped.

I don't want that. I want the camera to remain and look wherever it was looking. I want to tap & drag ... and just look around.

Or is there any other better way to do this?


P.S. I would also like to know if there is an option to use the phone's gyro or something in order to look around. It's basicalyl a 360 video and I want to look around freely. Thanks <3

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
Re: MouseLook - for mobile
« Reply #1 on: April 12, 2017, 02:46:14 AM »


Ok. I had to do something like this.

First State has a:


2nd State has a WAIT for 0.3 Seconds than go to the 3rd state

3rd State has:


Does anyone know how to do this easier?
This way it still jumps sometimes... and some people just tap & drag imediatly so that wait is a bit weird.
« Last Edit: April 12, 2017, 02:53:08 AM by PET »

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
Re: MouseLook - for mobile
« Reply #2 on: April 12, 2017, 03:58:19 AM »
Hmm... it even jumps in the Editor:

https://streamable.com/azvz3

Always when trying to love above the horizon.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
    • View Profile
Re: MouseLook - for mobile
« Reply #3 on: April 13, 2017, 12:45:49 AM »
Hi,
 
This looks typically like the wrong up axis setup for your look at. but you seem to not use look at, do you? any other fsm trying to control the camera too?

 Can you try on an empty scene with a simple camera, if that works then check the difference with your buggy setup

 Let me know how this goes.

 Bye,

 Jean

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
Re: MouseLook - for mobile
« Reply #4 on: April 13, 2017, 01:34:37 AM »
Well not really sure what to use. It's just a FSM attached that has those small states.

Not really sure what's the best way to do a Tap & Drag to move the camera for mobiles.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
    • View Profile
Re: MouseLook - for mobile
« Reply #5 on: April 17, 2017, 11:47:42 PM »
Hi,

 I would suggest using EasyTouch, it has full PlayMaker support built in.

doing this yourself is possible but requires some expertize and patience :) It's a good exercise to do it yourself, but if your pooint is to make the gameplay, then I strongly advice you get an asset that does the heavylifting of touch management for you.

 Bye,

 Jean

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
Re: MouseLook - for mobile
« Reply #6 on: April 18, 2017, 12:23:22 AM »
Thanks. It's on the list to purchase :D

PET

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • GamerPET
Re: MouseLook - for mobile
« Reply #7 on: April 21, 2017, 03:46:35 AM »
Well... just got Easy Save. Now I have to see how to use it. There are no tutorials out there ... and the demo scene is not helping me that much. :(