Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

"We understand you have a choice in rating begging threads and thank you for choosing Kernel Iron for your rating needs. Please find enclosed a returned rating on your page."

Jokes aside, thanks. I'm always unsure how to map keyboard buttons in games like this. I've seen a lot of people use WASD for platformers in these jams which feels pretty foreign to me. What I should have done is allow custom keyboard mappings, but I guess there's always next time. ;)

Buttons easy to use. You need to go to edit->project settings-> input manager and to make settings for horizontal. Then you need to go in your player controller and ad something like 

moveInput = Input.GetAxis("Horizontal");

rb.velocity = new Vector2(normalSpeed * moveInput, rb.velocity.y);

where rb is rigidbody2d but you need to freeze Z rotation in rb. But you can try to watch some tutorials on youtube