Twin Stick Shooter?

ozz

  • *
  • Posts: 575
 I'm trying to allow the player to aim with one of the analog sticks on a controller, but while I've got all the other functions working with a controller, I'm kind of stumped.  Best I can come up with is eight direction firing.  Is there a way to have the game detect the direction of the stick and fire in that direction?  Or is there another way of doing it I'm not thinking of?

Luyren

  • *
  • Posts: 2747
As far as I can tell, you can use the "pressure for control" block, and do some math between two analog controls to find the angle between them.

« Last Edit: August 13, 2020, 11:16:15 am by Luyren »
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

ozz

  • *
  • Posts: 575
Wow, really?  I've just been using it to manage the sensitivity of the analog sticks.