OFFICIAL Tech Blog: Buttery Smooth Tech - Inputs

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
001_blog.jpg

Excellent tech blog here from the guys at Butterscotch Shenanigans on how to deal with input in your games... AND it includes a test project that shows the techniques explained!

 
Hey guys. Love this setup. I found a problem in the code when I tried to add additional inputs to my manager. In the o_input_manager Begin Step, (around ) line 110 where we check the inputs:

GML:
for ( var this_input_action = 0; this_input_action < array_length_1d(INPUT_STATES); this_input_action++){
should actually be:

GML:
for ( var this_input_action = 0; this_input_action < array_length_1d(INPUT_STATES[player_id]); this_input_action++){
 
Last edited:
Top