Pages: [1]   Go Down
Author Topic: using an arduino with buttons as a controller for a flashgame for school project  (Read 351 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hey guys, we're building a game for school and they added the mission to make a controller with arduino to play the game. BUT, i'm a total noob smiley so, how could i do this the easiest? We use actionscript 3.0 (mandatory for the project) and an Arduino Uno. We're thinking about purchasing the joystick shield from sparkfun: http://www.sparkfun.com/products/9760

How could i get flash to recognize my arduino as a controller? and what code do i need for it to work for the following functions: up/down/left/right  an "A" button to confirm stuff and a "B" button to delete/go back? I'm really new to all this and massive tutorials seem to not work at all for me..

hope someone can help/direct me in the direction needed smiley
Logged

Leeds, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 134
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You could perhaps reprogram the Uno to have a mouse HID, left click A, right click B, joystick is movement.

Alternatively take a look through here and start small. Send a stream of data into a text field in flash or something, then work up from that. Looking briefly the 'TinkerProxy' looks quite easy to set up.
Logged

Pages: [1]   Go Up
Jump to: