Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sand: A Superfluous Game

An open world, base-building, adventure survival game with quirky humor and Llamas!​ · By Voided Pixels Studio

Trouble rebinding sprint key

A topic by AmbsAce created Aug 16, 2019 Views: 169 Replies: 5
Viewing posts 1 to 3
(+1)

Hey, enjoying the game so far, but my laptop has a busted left shift, and I'm having trouble rebinding sprint.

Using keyboard_setup, I'm able to change all other keybindings just fine (complete with changed prompts!), but changing the key for sprint seems to have no effect: the new key will not work, and shift is still sprint.  Has anyone successfully rebound sprint that can offer guidance?

Also, I see that shift is keyed as "16", and assume other non-alphanumeric keys have similar codes, but I don't see documentation as to what is what.  Does anyone have a chart of the possible key codes, or at least ones for CTRL, ALT, Caps_Lock, and Space?

Much appreciated!

Developer(+1)

I'll add documentation for that. I'll have to check maybe I hard coded it? When I get to a computer I'll check it for you.

Developer(+1)

Ok I've redid the code to make any key rebindable to non-alpha keys. I'll also add a note to the keyboard ini. One of these days I'll make a nice menu to rebind them. Expect an update tonight (can't upload at my 'real' job) :).

//Left Shift = 160
//Right Shift = 161
//Alt = 17
//Control = 18
//Space = 32

(+1)

That's awesome, thanks!  Haha, I wanted to keep playing and ended up remapping shift onto capslock in the registry, but it'll be great to have  a less... extreme solution.  I'm looking forward to putting activate on the space bar too.

Again, really enjoying the game.  Cheers and keep up the good work!

Developer (1 edit)

I think it might be Unicode? But probably not. I couldn't find a list of function key number for game maker.

Developer

Oh it is live BTW. See if it works.