Help: Using Button to Quick Turn With Gyro

GPC2 script programming for Titan Two. Code examples, questions, requests.

Help: Using Button to Quick Turn With Gyro

Postby pigy33 » Sat Feb 11, 2023 5:45 am

Hello, what I want to do is use the gyro aim in the game to turn Faster than with stick using a button, I have my script:

Code: Select all
 
main {
if (get_val(BUTTON_16)) {
set_val(SWITCH_GYROX, 100 );
   set_val(SWITCH_ACCX, 100);
}


I don't really know how these values work but sometimes when I press the B button the Switch controller (button 16) it stops movement in the corresponding direction.
User avatar
pigy33
Sergeant First Class
Sergeant First Class
 
Posts: 25
Joined: Tue Mar 20, 2018 9:58 pm

Return to GPC2 Script Programming

Who is online

Users browsing this forum: midg3t2 and 187 guests