× shashirajproductions Bundle Popout
GameDev Market logo

2D

Asset image

Description

https://www.youtube.com/watch?v=6Q6H0VD-u-o Test it here: https://e-ugovor.rs/TPS_Controls/ Or download test APK and test it on your android device: https://www.dropbox.com/s/ywtjh1qwqc1hf2f/TPS%20test.apk?dl=1 This asset will provide you with TPS controls for mobile devices that is very easy to setup and use. How to use it? Drag and drop “TPS Controls” prefab from “Prefabs” folder to your project hierarchy. *Camera is attached to “TPS Controls” prefab, so remove any other cameras on your scene. *When you do this step and click play button in unity editor, you will be able to fully use joystick controls like in example scene. But you may want to change capsule mesh into your custom player 3D model. To do that follow the next steps. To change capsule mesh into your custom player 3D model delete “PlayerMesh” game object (that it a child object of “Player” game object that you drag and dropped to your project hierarchy in the first step) and place your custom character 3D model instead. *After this step when you click play button in unity editor, you will be able to move your character but without animations. To set up your animations follow the next step. To use your custom animation that will require a little bit of coding. Make a new script and use this static variable to detect in which direction player is moving: JoystickLeft.positionX – If value of this variable is negative (from 0 to -1) player is moving in left direction. If value is positive (from 0 to 1) player is moving in right direction. Example: if(JoystickLeft.positionX 0) { print("player is moving right at the speed: " + JoystickLeft.positionX); } JoystickLeft.positionY – If value of this variable is negative (from 0 to -1) player is backward. If value is positive (from 0 to 1) player is moving forward. Example: if(JoystickLeft.positionY 0) { print("player is moving forward at the speed: " + JoystickLeft.positionY); } To detect rotation changes when player drags finger on right side of the screen use JoystickRight.rotX and JoystickRight.rotY. These variables will return value from 0-360. And use value from JoystickLeft.angle static variable if you are using “Use right area to rotate camera” option. Using these variables you can make your custom logic for playing animation. Additional Options If “Sticky” option is checked joystick will be invisible and it appear on the position where you touch the screen. If this option is unchecked joystick will always stay on the same position. “Stick Movement Threshold” will determine how much joystick can move from its central position. “Move Joystick Base On Drag” – whether joystick base should move when you drag outside joysticks base area. “Sensitivity” will determine how fast character will rotate when player drag the finger on the right side of the screen. “Rotation Y Max Angle” will limit rotation on Y axis when player drag the finger on the right side of the screen.
Report asset

Media

Author Details

SilverBullte's profile image

Active Since: May 2015

Published Products: 108

Followers: 4

Reviews

This asset has not received any reviews yet.

You must be logged in and have bought this asset to leave a review.

Comments

To leave a comment, please log in
Be the first to leave a comment.

Licence Info

Great news! All assets on GameDev Market come with our standard Pro Licence.

Whereas some asset stores have multiple licence versions, we believe having only one licence keeps things as simple as possible for our users, so that you can keep on doing what you love without any doubts over where and how you can use your assets.


At a glance, here are some of the key points from the licence:


 You can:

  • Make changes to any asset bought/downloaded
  • Use the assets and any Derivative Works in Media Products, whether commercial or non-commercial, with no restriction on the number of projects

 You cannot:

  • Use the asset or Derivative Works in a logo, trademark or service mark
  • Sell, share or redistribute the asset or Derivative Works outside of the Media Product
  • Allow the user of the Media Product to extract the asset or Derivative Works and use them outside of the relevant Media Product.
  • Use assets bought on GDM to create NFTs

You can check out the full Pro Licence here.

TPS Controls for mobile devices - Easy Third Person Shooter asset for your game

Handcrafted by SilverBullte

$5.00

(VAT may apply)

Please login/signup to add this product to your wishlist.

Technical Details

Name Value
Version 1.0
Last updated October 13, 2020
Included formats C#, png, wav
Created in Unity3D
File size 98.85 MB
Changelog N/A
Vector
Layered
Sprite

*You will receive an email once per week when any Followed Creators list new assets

Share & Earn

Log in and Share this asset and your Alliance link will be included, meaning you will earn money back on any sales/purchases made by new members joining through your link! See the Referral Guide for more details.

More assets from SilverBullte


GameDev Market logo

GameDev Market is a marketplace for high quality, affordable game assets handcrafted by talented creators from all around the world.

GameDev Network Limited is registered in England & Wales (08951892). Registered office: Baltic Co-Working Space, 12 Jordan Street, Liverpool, UK. L1 0BP. ICO registered (ZA122213).

© 2024 GameDev Network Limited. All rights reserved.