FPS Controls for mobile devices (Unity Source Code) - easy first person shooter virtual controls

Description
Or download apk file and test it on your android device
This asset will provide you with FPS controls for mobile devices that is very easy to setup and use.
How to use 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 value, use “JoystickLeft.positionY” to get Y axis value (you will get value from -1 to 1 for x and also from -1 to 1 for y axis).
In case that your character doesn’t have rigidbody you can use this:
transform.position = transform.position + moveX * Time.fixedDeltaTime + moveY * Time.fixedDeltaTime;
- For rotation use JoystickRight.rotX and JoystickRight.rotY.
- Example
void Update() { transform.rotation = Quaternion.Euler(JoystickRight.rotY, JoystickRight.rotX, 0); }
• To detect if shot button is pressed you can use JoystickRight.shot static variable. It will return true when shot button is pressed and false when it is released. • To detect if jump button is pressed use JoystickRight.jump. It will return true whan jump button is pressed and false when it is released.
| Type | Android App |
|---|---|
| Author | hypercasual |
| Category | Mobile / Android / Games |
| Price | $5 |
| Sales | 9 |
| Rating | 0.00 from 1 rating |
| Published | Jan 4, 2021 |
| Last Update | Jan 4, 2021 |
| Compatible Software | Android 9.0, Android 8.1, Android 8.0, Android 7.2.x, Android 7.1.x, Android 6.0, Android 5.1.x, Android 5.0, Android 4.4.x, Android 4.3.x, Android 4.2.x, Android 4.1.x, Android 4.0.4, Android 4.0.3, Android 4.0, Other |
| Mobile Files Included | Layered PNG |
| Video Preview Resolution | 1280x720 |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
Perceptle
Perceptle is a daily browser-based game that challenges you to test your sensory intuition through five quick estimation and rhythm-based rounds.
Other · 1,489 views · 9 clicksOther · Week 47 · 1,489 views · 9 clicks
🥈
Free LinkedIn Likes From Real
Get free LinkedIn likes on your posts from real members who react by hand. No
SaaS · 1,632 views · 10 clicksSaaS · Week 47 · 1,632 views · 10 clicks
🥉
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 9,176 views · 75 clicksSaaS · Week 47 · 9,176 views · 75 clicks
#4
aaas.market
407 reliable micro tools for solo founders, marketers and creators. They work in your browser
SaaS · 1,597 views · 5 clicksSaaS · Week 47 · 1,597 views · 5 clicks