Download FPS Controls for mobile devices (Unity Source Code) – easy first person shooter virtual controls on Codecanyon

0
Add to compare

Download FPS Controls for mobile devices (Unity Source Code) – easy first person shooter virtual controls. The theme releases on Monday 4th January 2021 By The author NeonSpaceFighter on Codecanyon. It’s makes use of with goal,android,controller,gamepad,enter,ios,ipad,iphone,joypad,joystick,multi,shoot,shot,smartphone,contact.

Item Title: FPS Controls for mobile devices (Unity Source Code) – easy first person shooter virtual controls
Category: mobile/android/video games
Price: $5
Author: NeonSpaceFighter
Published Date: Monday 4th January 2021 03:30:49 PM

More Info / DownloadDemo

4415 5230074415

Test it right here (WebGL)

< href=”https://www.dropbox.com/s/nuj1bwive9n324b/FPS%20Controls.apk?dl=1”>Or obtain apk file and take a look at it on your android system

This asset will offer you FPS controls for mobile devices that could be very easy to setup and use.

How to make use of it?

  • Drag and drop “FPS Controls“ from “Prefab” folder into your scene.
  • Use “JoystickLeft.positionX” static variable inside your scripts to get left joysticks X axis worth, use “JoystickLeft.positionY” to get Y axis worth (you’ll get worth from -1 to 1 for x and likewise from -1 to 1 for y axis).

*Example
Vector3 moveX = JoystickLeft.positionX * velocity * rework.proper;
Vector3 moveY = JoystickLeft.positionY * velocity * rework.ahead;
rigidbody.MovePosition(rework.place + moveX * Time.fixedDeltaTime + moveY * Time.fixedDeltaTime);

In case that your character doesn’t have rigidbody you should utilize this:

rework.place = rework.place + moveX * Time.fixedDeltaTime + moveY * Time.fixedDeltaTime;

– For rotation use JoystickRight.rotX and JoystickRight.rotY.

  • Example

void Update() {
rework.rotation = Quaternion.Euler(JoystickRight.rotY, JoystickRight.rotX, 0);
}

• To detect if shot button is pressed you should utilize JoystickRight.shot static variable. It will return true when shot button is pressed and false when it’s launched.
• To detect if bounce button is pressed use JoystickRight.bounce. It will return true whan bounce button is pressed and false when it’s launched.


More Info / DownloadDemo

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Download FPS Controls for mobile devices (Unity Source Code) – easy first person shooter virtual controls on Codecanyon”

Your email address will not be published. Required fields are marked *

WordPress Premium Themes & Plugins
Register New Account
Reset Password
Compare items
  • Total (0)
Compare
0