Playmaker Forum

PlayMaker Help & Tips => Android Help => Topic started by: ho young ryoo on September 23, 2017, 02:55:07 PM

Title: How can i make camera like Calsh of Clans?[SOLVED]
Post by: ho young ryoo 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.
Title: Re: How can i make camera like Calsh of Clans?
Post by: ho young ryoo 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.
Title: Re: How can i make camera like Calsh of Clans?[SOLVED]
Post by: Broken Stylus 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.