Posts: 6
Joined: Sat Oct 15, 2016 8:28 pm

Game Developing

Tue Dec 20, 2016 6:50 pm

Hello, I just started working with Astro Pi's and in fact am also brand new to Python. Basically I am asking one for Christmas ( right now I'm using an emulator)
Anyway I want to do a sort of

if action == pushed right:
print('you went right')

but I don't know how, this would be a great help, thanks.

User avatar
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: Game Developing

Tue Jan 10, 2017 3:23 pm

Everything you need should be on this page. It tells you all the commands you can use along with a code snippet that you can copy and paste to try out. Scroll down to Joystick for specifically what you're after.

There are also lots of free resources about learning Python too.
Check out:

Return to “Astro Pi”