Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Game Development

How to change input in Frogs n Logs to mobile?

I'm running unity 5.0 and it seems to be next to impossible to change the controls to mobile for the Frogs n Logs game. I changed the project to android and added

Using UnityStandardAssets.CrossPlatformInput;

to the beginning of the playermovement script and changed the

Input.GetAxisRaw to CrossPlatformInputManager.GetAxis

and then I added a mobile joystick standard asset prefab to the project. But the joystick does not move at all when I click it and move it around, and it doesn't work on mobile either.

How can I fix this?

In another game I used namespace.Unit.... {} instead of Using Unit.... and it worked but on frogs and logs this causes errors in other scripts because playermovement no longer registers with the gamestate script.