This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-09-11 13:49:35

SuperRoy
Scratcher
Registered: 2010-11-01
Posts: 8

Re: JoyTail - Use a joystick with scratch

Does anyone know of a MAC compatible joystick program? I'm trying to make a turret like game, and it would be really cool if i could use a joystick with it...  big_smile

Offline

 

#27 2012-02-27 09:01:30

anselm13
Scratcher
Registered: 2009-10-27
Posts: 5

Re: JoyTail - Use a joystick with scratch

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

 

#28 2012-02-28 04:14:52

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: JoyTail - Use a joystick with scratch

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

 

#29 2012-02-28 04:38:50

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: JoyTail - Use a joystick with scratch

I never knew that AutoHotkey could make such advanced scripts!


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#30 2012-02-28 13:03:06

anselm13
Scratcher
Registered: 2009-10-27
Posts: 5

Re: JoyTail - Use a joystick with scratch

Thanks abee.  I'll check it out.

Offline

 

#31 2012-02-28 21:41:40

anselm13
Scratcher
Registered: 2009-10-27
Posts: 5

Re: JoyTail - Use a joystick with scratch

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

 

#32 2012-02-29 00:33:49

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: JoyTail - Use a joystick with scratch

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

 

#33 2012-03-15 14:37:03

anselm13
Scratcher
Registered: 2009-10-27
Posts: 5

Re: JoyTail - Use a joystick with scratch

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

 

#34 2012-12-01 05:53:09

speckulazius
New Scratcher
Registered: 2012-11-20
Posts: 4

Re: JoyTail - Use a joystick with scratch

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

 

Board footer