Top Down Shooter - Right Stick Rotation
Hey guys,
Firstly, I think we can all agree that Dreams is amazing, and wonderfully complex!
I'm trying to get the angle that the right stick is pointing in to to be recreated on my character ship. The camera is fixed, think Super Stardust, I have the left stick working perfectly, but the rest is currently a mess.
I've gone through all the rotation tools and searched through the posted questions but I appear to be missing something.
Trying the suggestion in this thread (https://feedback.indreams.me/forums/917434-dreams-how-do-i/suggestions/36372364-top-down-twin-stick-shooter-help), whatever I try, it seems to just allow me to rotate in one direction taking the x/y value as a 0-100% speed.
What I'm really looking for is a 1:1 representation of the right stick, ideally with the ability to add smoothing and sexy tilting into the turns. But right now I'd settle for the 1:1 representation so I can get working on the rest of my idea!
Many thanks for any help!!
Pix
-
I think I know what you mean. Need to output from local right stick into splitter then hook x-axis to x-axis on a rocket rotator. Set strength to 100 and dampening to 100 for smooth rotation. That worked for me. Don't use gyroscope anywhere as it resets the vehicle to a default start point in the rotation when you let go of sticks.
-
Oh and ramp up the degrees per second to 1000 on Rocket rotator.
-
Thanks so much for the advice. I'm not sure if I'm doing something wrong but it doesn't appear to work.
The output you're ending up with from the controller is only the left/right from the thumbstick. Which will turn the ship left or right instead of reproducing the direction you're pointing the stick.
From what I understand of game design I'll need some sort of trigonometry calculation to work out the value from the thumbstick as an angle. It appears the control sensor only sees the sticks as the x/y value.
Is there a gadget that does this calculation? -
For the record, I have solved this, however it feels like a bit of a workaround.
Taking the cue from Ninjuana's excellent Planetoid Pandemonium, I created keyframes for 4 points of rotation and split the local right stick into 4 wiring up appropriately. Add in a bit of ramp up and springiness and let the keyframes do the default blend. Also, don't forget to keep changes on all the keyframes.
Again, I feel like this is a bit of a workaround. You don't have a huge amount of control over the behavior of the rotation. Now I just need to work out how to make the ship tilt slightly when moving...
As with a lot of things in Dreams, I get the feeling I'll be either overthinking or underestimating the tool set a lot!
Please sign in to leave a comment.