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
1
Question by AaronCvfbdsaghjkbdgouidahsfcuiopads · May 23, 2011 at 01:25 PM · iosjoysticksidescrollerlerpz

How to make Lerpz Sidescroller work with iPhone Joystick?

Hi is anyone aware of an existing Lerpz sidescroller project configured for iOS Joystick Input?

I'm basically looking for the sidescroll example with joystick input. Not sure if its an easy convert or not, been gutting out the platformer controller script but its not successful at this point. I guess its quite simple but theres acres of code. Getting the character to rotates the right direction is my primary objective. It has to rotateTo absolute, not partially.

Comment
Add comment · Show 2
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 Muzz5 · May 23, 2011 at 03:19 PM 1
Share

Great name!

avatar image AaronCvfbdsaghjkbdgouidahsfcuiopads · May 23, 2011 at 03:26 PM 0
Share

Thanks, first couple of names were taken lol :-)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by demize2010 · May 23, 2011 at 01:27 PM

The standard mobile assets have the controls you need ;) I think it even has a side scroller scene.

Comment
Add comment · Show 4 · 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 demize2010 · May 23, 2011 at 01:34 PM 0
Share

Ah with the rotate you probably need to add a little bit of script to get him to face down the right axis. So

if the input is + then transform.Rotate(your + direction).

If the input is - then transform.Rotate(your - direction).

avatar image AaronCvfbdsaghjkbdgouidahsfcuiopads · May 23, 2011 at 01:44 PM 0
Share

The 2D sidescroller example has other dependent scripts for managing the animations. The animation scripts are dependent on PlatformController.js which is 370 lines of code and discarded in this conversion. So its a bit more than 2 lines of code. If anyone knows of the 2d Sidescroller been converted for iOS using Joysticks please post? Thanks

avatar image demize2010 · May 23, 2011 at 02:04 PM 0
Share

This is an idea for how to go about doing it simply and is pesudo code which you can use IN ADDITION to other code in the project.

avatar image AaronCvfbdsaghjkbdgouidahsfcuiopads · May 23, 2011 at 02:10 PM 0
Share

$$anonymous$$y apologies, I actually dont want to do it simply, else I wouldnt have needed to post here. Ins$$anonymous$$d of a capsule that not only rotates but retains all the features of the original sidescroller, I'm looking for a real world example. The point is the sidescroller is relatively complex. Converting it to Joystick control is not trivial. Thank you for your input but I was hoping to find a more substantial reference project. Cheers. EDIT: Even getting the rotation working is a hassle, could you please elaborate on your example? Thanks

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

2 People are following this question.

avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Mobile Virtual Joysticks / Keyboard Script Conversion 0 Answers

2D Sidescroller: Change camera position? 1 Answer

iOS Rotation Chararacter with joystick 1 Answer

Unity 5 mobile single stick control 6 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