Toggle Movement Inputs
I'm trying to make an rpg/mmo styled game. I have made two movement functions for the player to use called Super Jump and Super Run. Currently I have them set up to where you have to hold down a separate key to perform the actions. I would like to make them toggled, for example when the number 1 key is pushed the character will super jump when the space bar is pushed instead of a regular jump. When the 1 key is pushed again, he will return to a normal jump height. Would a flip flop function node be better for this or is there a better way to fire off this command?
asked Mar 31 '15 at 05:14 PM in Blueprint Scripting
Definitely sounds like a job for Flip Flop. You can also have a Branch or Gate before the Flip Flop to make sure that the switch happens when you want, and that the player can't mash the button and screw things up (our pretty hilarious first testing method on any mechanic is getting several people to hold the same device and go absolutely bonkers)
Follow this question
Once you sign in you will be able to subscribe for any updates here