Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Halo500 · May 07, 2013 at 11:40 PM · androidmobileconversion

Converting PC game to Mobile Android Help?

I'm apologize in advance for my lack of knowledge in Unity.

So I have this game 3/4 done, and I want to test play it on my Nexus 7, because I am creating the game for Android devices. Problem is, I've been making the entire game with PC mechanics.

Can someone help me, or rather lead me toward tutorials specific to this particular situation I am having? I need to know what to add in correctly to convert my PC game into a Mobile game.

And no, this isn't a question about how to make my game into an .apk file. I already have everything set up for the SDK and all of that stuff. I just need to know how to make my game Mobile-friendly.

Comment
Add comment · Show 4
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 robertbu · May 08, 2013 at 12:05 AM 0
Share

There are a large number of posts on this list on touch if you want to use the built-in classes. You might want to consider abstracting away much of the differences through a third-party solution. I use FingerGestures. I understand Prime31 has a solution (I believe it is free). You still have to code and test all the two (or more) finger gestures, but a third-party abstraction gets you most of the why there.

avatar image Halo500 · May 08, 2013 at 02:06 PM 0
Share

Sorry, maybe I wan't being clear enough. There are the $$anonymous$$obile Assets folder given to you already in Unity. It has all the touchscreen joysticks and scripts for $$anonymous$$obile games.

How do I take out the Standard Assets I am using (Because I've been starting off with making this game with the Standard Assets), and replace them with the $$anonymous$$obile Assets so I can make it touch screen, etc. so when I compile it into an .apk file, I can actually test play it.

Because the WASD keys won't work if I tried to test play it on my tablet, and my other two functions for the game, the F and R key, aren't going to work also. So is there a tutorial that might help me change or convert my game with Standard PC Assets, scripts, etc. into $$anonymous$$obile Assets? I've been searching up tutorials and they get their controls for ping-pongs, star-ships, from the assets store. I am making a FPS horror/survival game.

avatar image roojerry · May 08, 2013 at 03:09 PM 0
Share

You will need to replace the input handling you have now with touch controls and I assume GUI buttons or gestures. You make it sound like you are looking for a simple swap to make things mobile, but you will have to do a little more work than that. Using the touchscreen joystick should be enough to replace your WASD movement, but you will need to make some decision about how the other two key presses you mentioned get handled on mobile(i.e. buttons or gestures). Also, any input you get from your mouse on the PC has to be handled as touch input on the device. There are many ways to do these things, and as @robertbu mentioned many packages as well.

Really, more thought should have been given to your mobile input handling from the start of your game, since you say you are targeting Andriod. Of course you need to handle mouse and keyboard input as well for testing in the Editor, but dont just think of input handling as a simple swap, as not all PC input translates directly to mobile devices. Take some time to think about how you want your game to play on mobile and build out your controls that way.

avatar image Halo500 · May 09, 2013 at 01:14 AM 0
Share

Thank you for clearing that out to me.

I just need two joysticks at both corners at the end, the one in $$anonymous$$obile Assets where it's a box with dotted lines that outlines the shape of the square at the corners, for a touchscreen. Also, I only need two buttons in the middle (Turn on/off flashlight, put in batteries when flashlight flickers).

So I understand how to put in the joysticks in my hierarchy, but do I add any specific scripts from $$anonymous$$obile Assets into my player for the joysticks to work? I need to understand how to do this first before we go into adding the buttons in the middle of the touchscreen joysticks for the 2 other keys.

0 Replies

· Add your reply
  • Sort: 

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

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to detect swipe on an Android device using javascript? 0 Answers

Profiler says that game is running at 10ms(100FPS) but on mobile runs at 45FPS. 2 Answers

Making 2D On screen buttons for movement 0 Answers

Publishing C# game in Android 1 Answer

Does Unity Pro support mobile publishing? 1 Answer


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