playMaker

Author Topic: How can i make camera like Calsh of Clans?[SOLVED]  (Read 5623 times)

ho young ryoo

  • Playmaker Newbie
  • *
  • Posts: 33
How can i make camera like Calsh of Clans?[SOLVED]
« on: September 23, 2017, 02:55:07 PM »
Hello. I'm preparing a new project.
And I have new issue.
I tried to make a camera that moves by touch.
I tried it for a week to create a camera with the ability to move to the drag, zoom in, and move only in the area using a touch of the screen like a Clash of Clans.
I studied "touch event" but I still can not find a way.

And I tried, "Drag Camera" but it's not work what I want.
http://hutonggames.com/playmakerforum/index.php?topic=10163.msg48027#msg48027
It was very hard to move camera.

And I found something in Unity Asset but it does not work.(something error)
https://www.assetstore.unity3d.com/kr/#!/content/14489

If you have any good idea, please share it.
« Last Edit: October 04, 2017, 02:49:45 AM by ho young ryoo »

ho young ryoo

  • Playmaker Newbie
  • *
  • Posts: 33
Re: How can i make camera like Calsh of Clans?
« Reply #1 on: October 04, 2017, 02:48:47 AM »
Hi,

I decided to use something in the store without solving it inside the playmaker.

https://www.assetstore.unity3d.com/kr/#!/content/30111

Please let me know if there's a better way.

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: How can i make camera like Calsh of Clans?[SOLVED]
« Reply #2 on: November 20, 2020, 02:01:36 PM »
It's a camera that requires both a pinch-zoom function and a scroll-drag one.
You certainly need to properly set up your touch systems. This can be "hard coded" into Playmaker by looking at direction and speed of a touch's movement, and you could then compare the distance in real time between two touches.
There are assets that do this though and they come with Playmaker support.