playMaker

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

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
MouseLook - for mobile
« on: April 12, 2017, 05: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
Technical Game Designer
www.GamerPET.com

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: MouseLook - for mobile
« Reply #1 on: April 12, 2017, 05: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, 05:53:08 AM by PET »
Technical Game Designer
www.GamerPET.com

PET

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

https://streamable.com/azvz3

Always when trying to love above the horizon.
Technical Game Designer
www.GamerPET.com

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: MouseLook - for mobile
« Reply #3 on: April 13, 2017, 03: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: 139
    • GamerPET
Re: MouseLook - for mobile
« Reply #4 on: April 13, 2017, 04: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.
Technical Game Designer
www.GamerPET.com

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: MouseLook - for mobile
« Reply #5 on: April 18, 2017, 02:47:42 AM »
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: 139
    • GamerPET
Re: MouseLook - for mobile
« Reply #6 on: April 18, 2017, 03:23:22 AM »
Thanks. It's on the list to purchase :D
Technical Game Designer
www.GamerPET.com

PET

  • Full Member
  • ***
  • Posts: 139
    • GamerPET
Re: MouseLook - for mobile
« Reply #7 on: April 21, 2017, 06: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. :(
Technical Game Designer
www.GamerPET.com

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: MouseLook - for mobile
« Reply #8 on: June 15, 2017, 02:53:02 AM »
Hi,

What is it you don't understand with easysave? let me know, you are probably not the only one to struggle with the initial learning steps.

 Bye,

 Jean