playMaker

Author Topic: How to handle multiple inputs efficiently  (Read 977 times)

puddlepouncer

  • Playmaker Newbie
  • *
  • Posts: 18
How to handle multiple inputs efficiently
« on: April 01, 2020, 03:16:33 PM »
Hi,

I wonder what the best approach would be to handle two inputs (for Player1 and Player2)

Right now I have created two "input managers", one for joy 1 and one for joy2 that each sends out events on input.

Since many fsm:s needs to receive the input data for various logics it would be convinient if they could "listen" to their respective input managers events rather than the input manager sending out events to all these fsm:s (Some broadcasting I guess) Does this make sense? :) Basically a Get FSM Event action.

Or how would your approach be to handle inputs when we deal with multiple players.


 
« Last Edit: April 02, 2020, 08:05:35 AM by puddlepouncer »