Dual analog movement in 4 events!
Author: | Monkey Soft
|
Submitted: | 7th January, 2007
|
Favourites: | 0 |
Genre: | Engine
| Downloads: | 233
|
Rated: |
|
|
I just bought a Xbox360/PC controller, and in a couple of hours I wrote this movement/shooting engine for dual analog controllers. Please tell me if it works well with yours!
Left stick: 8 directions movement
Right stick: 32 directions rotation
Simple autofire in the direction you face
I managed to wrote all movement/rotation code in 4 lines only, and you can see them in the CCA included! This is your chance to make a wonderful dual analog shooter!
This engine/tutorial uses the following extensions:
- Joypad Object: http://www.clickteam.info/extensions/extview.php?id=167
- Direction Calculator : http://www.clickteam.info/extensions/extview.php?id=185
- Advanced Direction Object: http://www.clickteam.info/extensions/extview.php?id=222
There is a little of math, but I think that the events are quite simple to modify. Anyway I wrote some comments to explain a bit the most difficult parts.
You can use freely this file... just give me a reply to this page telling if it works well with your joypad (please include manufacturer and model).
Thanks!
Review This Download
http://www.bloodymonkey.com/temp/Joypad.zip (235 kb )
|
|
Is this worth a look? Let others know! Favourite
|