Discuss Scratch
- Discussion Forums
- » Suggestions
- » Have USB controllers added to extensions
- Scratchuel21439new
-
Scratcher
100+ posts
Have USB controllers added to extensions
If someone from the Scratch Team rejects this, my reaction (or sorta):}
NOOO!!!!! New script for my signature:
NOOO!!!!! New script for my signature:
when green flag clicked
forever
say [Wow, Scratch without gamepad REALLY sucked and it still does.]
end
Last edited by Scratchuel21439new (Jan. 19, 2022 19:19:07)
- Matjam02
-
Scratcher
1000+ posts
Have USB controllers added to extensions
I’m makin a star wars game. Imagine playing online with ur friends ON XBOX! I support
- gamemaker7374
-
Scratcher
26 posts
Have USB controllers added to extensions
Scratch has a lot of extensions for things like lego, makey makey, generally some strange input types that aren't usable for a lot of projects.
adding support for controllers would help lots of projects, especially ones that work well with analog input, like drivingwhen button [a v] pressed :: extension hat // buttons include ABXY, dpad, L, R, LT, RT, and analog sticks (they can be clicked down on some controllers)triggers are LT, RT, L2, R2, or ZL, ZR. note that switch controllers (if they get support) just have triggers (ZL and ZR) be at either 0% or 100% since they aren't analog.
when [LT amount v] amount [= v] (100) % :: extension hat // input options are triggers and all stick movement (shown on next blocks)
rumble for (1) secs :: extension stack
rumble :: extension stack // just keeps rumbling until stopped
stop rumble :: extension stack
<button [a v] pressed? :: extension>
([left v] stick x :: extension)
([left v] stick y :: extension)
([left v] stick direction :: extension)
([left v] stick distance :: extension) // how far the stick is from the center
([LT v] pressure :: extension) // how far the trigger is pushed down
another thing to help is that text on the blocks will change depending on which type of controller is connected.
another thing that could be done is adding support for multiple controllers, for thigns like multiple players. with would modify the blocks to add player numbers from 1-4 (this would be the same as the player indicator on the controller) and add these blocks.when player [1 v] connected :: extension hatmultiple controllers should be a togglable option because it does make things much more complicated.
when player [1 v] disconnected :: extension hat
<player [1 v] connected? :: extension>
oops, accidently created a new topic about this. sorry.
anyways, this is awesome! can't wait for projects like this!
Last edited by gamemaker7374 (July 22, 2020 22:57:19)
- imabanana22
-
Scratcher
500+ posts
Have USB controllers added to extensions
you can technically do this with makey makey
- DerpyHead0
-
Scratcher
1000+ posts
Have USB controllers added to extensions
you can technically do this with makey makeymakey makey is a seperate thing, and nobody really buys it, people are more likely to have controllers
- Scratchuel21439new
-
Scratcher
100+ posts
Have USB controllers added to extensions
Another block for this to make sticks easier to use:
Officially, my 30th post!
<[left v] stick pushed to [right v]>
Officially, my 30th post!
Last edited by Scratchuel21439new (July 23, 2020 12:08:51)
- ninjaMAR
-
Scratcher
1000+ posts
Have USB controllers added to extensions
Another block for this to make sticks easier to use:Good idea([left v] stick pushed to [right v])
- Steve0Greatness
-
Scratcher
1000+ posts
Have USB controllers added to extensions
This is an amazing suggestion! I NEED this in Scratch
- fluff64
-
Scratcher
41 posts
Have USB controllers added to extensions
I have an old Xbox 360 controller and haven't used it for a while. 

- fluff64
-
Scratcher
41 posts
Have USB controllers added to extensions
when green flag clicked
build games/ai/stuff/learn engineering/ start my own car company/ etc
- fluff64
-
Scratcher
41 posts
Have USB controllers added to extensions
dear scratch team: we want controller support!
I don't want to sell my old controller!
I don't want to sell my old controller!
Last edited by fluff64 (Aug. 1, 2020 20:22:53)
- scratchastroLOL
-
Scratcher
1000+ posts
Have USB controllers added to extensions
when green flag clickedbuild games/ai/stuff/learn engineering/ start my own car company/ etc
don't blockspam.
- Steve0Greatness
-
Scratcher
1000+ posts
Have USB controllers added to extensions
@Za-Chary, add this,
NOW
- Steve0Greatness
-
Scratcher
1000+ posts
Have USB controllers added to extensions
Stop a karenno advertising
- DabDatBass
-
Scratcher
1000+ posts
Have USB controllers added to extensions
how about
fade rumble with speed (1)::extensionblocks and
set rumble hz to (100) %::extension?
- fluff64
-
Scratcher
41 posts
Have USB controllers added to extensions
How about controllers with speakers, such as the Dualshock4?
play sound [ v] from controller speaker
change controller speaker volume by ()
Last edited by fluff64 (Aug. 2, 2020 15:24:38)
- DabDatBass
-
Scratcher
1000+ posts
Have USB controllers added to extensions
How about controllers with speakers, such as the Dualshock4?ῳơῳῳɛplay sound [ v] from controller speakerchange controller speaker volume by ()
- Steve0Greatness
-
Scratcher
1000+ posts
Have USB controllers added to extensions
Support! This would be the best feature! But I think that then scratch would read all the inputs, so they would be labeled as (in.1) (in.2) (in.3) (in.4) all for a, b, x, y, It would be hard to have support for all controllers, so most websites takes this route, with of course (y.1) (x.1) (y.2) (x.2), this would be the easiest option, but, it would make it hard to use, also, scratch can read Bluetooth so they could just make a “controller” extension that checks for USB and Bluetooth. If you read this entire thing then congratulations, you read what I wrote, you get *drum rolls* NOTHING!
- KaptenUndertale
-
Scratcher
15 posts
Have USB controllers added to extensions
Again, I totally support!
I SUPPORT!
add [me] to [supporters]
/scratchblocks]