Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Changing how input works breaks ladder functionality

A topic by StarvingIndyDeveloper created Jun 17, 2022 Views: 158 Replies: 2
Viewing posts 1 to 3

So, I wanted to change how input worked as I felt that passing input to the motion function was too difficult to manage if needed to make changes (e.g. add new inputs).

Basically, I wanted to use instance variables. However, the rotation effects seem to break when utilizing ladders. Do you have any idea on why this is happening? 

I had a few other questions I wanted to ask but didn't want to flood your community thread. Is it possible to e-mail you?

Thanks for your time!

Developer

You can write a separate input handler and pass its state as booleans to the motion function. If you manually start overriding stuff things might break :(.

Thanks for the reply.

It's not a big deal really I guess as I don't need the rotational effects when using sprites anyway. I was just kind of curious if you knew what the cause was cause I found the behavior to be a little odd.

I guess from personal experience I'm not the biggest fan of combining so much into a single script. However, it seems to somewhat common in platformers.