ManaUser:
I know you made this many years ago, but I wondered if you thought it was possible to modify joytail to support more than one joystick simultaneously for a multiplayer game? I've downloaded the source and it looks pretty complicated, though you have some comments for guidance. Anyway, if you happen to see this message, maybe you could provide some tips or let me know if it was even possible?
Thanks
Offline
anselm13,
There is another solution by making mod for joystick.
http://squeakland.jp/abee/tmp/Joystick.zip
I added joystick X-Y sensor and button 1-4 to the sensor block.
Currently it supports only one joystick but it is expandable for multiple joysticks.
Offline
I never knew that AutoHotkey could make such advanced scripts!
Offline
Not sure from my background which is proving more confusing, the autohotkey script or squeak image files. I've figured out how to get into the squeak environment with the scratch image via http://info.scratch.mit.edu/Source_Code, but not sure how to go about attempting to modify the joystick image. Any suggestions for a thread with some guidance on doing this or a link to some other resource? I wasn't having much luck with the sticky posts on threads I was looking through.
Offline
Okay, here is a tutorial for mod. It is a good start point.
http://wiki.scratch.mit.edu/wiki/Modding_Tutorial
I cannot say it is an easy way. You should learn new language, Suqeak Smalltalk, and its development environment.
However you can try my mod. Just put Joystick.image and Joystick.changes into your Scratch folder, then double-click joystick.image. Joystick.sb is a sample project and joystick.6.cs is a source code of this mod. The cs file can be opened by usual text editor.
Last edited by abee (2012-02-29 00:43:32)
Offline
I got pretty confused with Squeak, so I decided to mess with the autohotkey script and I have found success in getting more than one joystick support in Scratch. If anyone is interested I've attached the modified joytail script with source and a sample scratch program. The joytail_multi script does not have the GUI like the original joytail and requires that you edit the INI file with a text editor. The first time you run the script it will create an INI file setup for 4 joysticks. The INI file is pretty self explanatory to modify.
Also the sample scratch program contains two sprites you can move around with 2 gamepads and holding button1 down will turn on the sprite's pen.
So here you go:
http://dl.dropbox.com/u/387521/Joytail_Multi.zip
Offline
Hej Guys,
could anyone provide me with the joytail-program, the origin download-link is broken.
I really need it desperatly for a workshop with children.
Please mail me to: a-kern at aon.at
Thanks,
Andreas
Offline