Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by 4ndik4w · Apr 07, 2017 at 11:31 PM · mobilejoystick

late response mobile joystick crossPlatformInput

i have project 2D game side scroll for android mobile, firstly im using WASD button to move the character because the main gameplay is to avoid every enemy until finish, and yeah everything is good so far.

then i starting to change my WASD to mobilsinglestickcontrol from standard assets. so far so good on setting prefabs and script until i found something weird joystick response when i starting test it. detail is:

when using WASD button, my char move directly to whatever button i pressed (fast response). but using joystick, my char has delay or late to move to direction where i drag the joystick.

lets say he move to left then directly i change move to right. but my char do is: he move to left smoothly to top speed or myCharSpeed; then do brake speed until 0 then move to right smoothly to top speed again. like he float on moon or galaxy or whatever low gravity something like that. i dont need that smooth transition for my style gameplay project, fast response needed because enemy move fast to, to giving challenger. when joystick responsive to slow to evade transition, even pro game tester never move more than 2 meter or less.

please, can anyone give me clue how to fix that. thx b4 :D

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by 4ndik4w · Apr 16, 2017 at 08:46 AM

finally i found it. day after day i do research (sound like scientist XD) on myCharScript. yeah sory everyone i forget to include script preview (my bad XD).

i found that make my char move like floating in space is .addForce. but until now i dont know what exactly .addForce work and when to using that (u got me, im not an programmer when im starting learn unity3D).

but..... yeah, do little change (okay, exactly is my real hard work on 8 days and almost lost my spirit T_T) from myCharRB.addForce to transform.Translate and my char move like what i want.

thats all from me..... if this usefull for anyone stuck like me. then reference to it, maybe u got idea after read this. thanks and got a nice day ^_^

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ali-hatem · Apr 16, 2017 at 12:17 PM 0
Share
  1. fixing problems will make you a better programmer from experience.

  2. addForce is realistic physic force simulation so in real world you cant immediately turn right from left.

  3. transform.Translate is god choice to move objects but you will face a none collision detection at high speed from experience. so i advice using Rigidbody.velocity if 3d and Rigidbody2D.velocity if 2d.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

2D shooting with mobile joystick 1 Answer

Make gameObject face position of Joystick [Mobile] 4 Answers

How do I do a double Floating joystick? (Direction and movement (one for each))? 0 Answers

Unity 5 Character Controller Mobile Input 0 Answers

Rotate GameObject Z axis only relative to Joystick 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges