TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Twin Stick Shooter?
Pages:
1
Twin Stick Shooter?
ozz
Posts: 575
August 12, 2020, 07:51:21 pm
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
August 13, 2020, 07:05:27 am
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
August 13, 2020, 08:21:38 am
Wow, really? I've just been using it to manage the sensitivity of the analog sticks.
Pages:
1