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 use Unity?

Hi, I'm rather new to using Unity...just made the frog game and all that good jazz, but I'm working on my own casual gamer's platfor 2D game. I have a capsule, and when I press space, I want it to jump up a certain amount of pixels, and then when I'm not pressing space, it should just fall until it hits the bottom of the screen. Kind of like jetpack joyride if you know what I mean. I already have an object (capsule) and a script. But I need help with the code that goes in the script. Could someone post some code? Thanks all!

1 Answer

Alan Mattan贸
PLUS
Alan Mattan贸
Courses Plus Student 12,188 Points

" How to use Unity? "

There is a new course at Treehouse Unity Basics Go for it and then continue with the frog.

The title probably is not correct with the subject.