Liam Earles
Member
Okay, so when I change instance by pressing down on both arrow keys, and the D-Pad on the controller, they both work fine. But with the Analogue stick, it's a whole different story. So I have an object that can do cartwheels which moves by changing the instance into a different object when holding down, but when I have the instance changed by holding down on the analogue stick, it wouldn't move until I release the right analogue stick.
Here's the code for the controller step:
Here's the code for the Controller's create step:
Here's the code for the character in Idle holding down on the left analogue stick:
And here's the code for the character doing the cartwheel action:
Let me know how to fix this because I was trying to figure this out for almost 4 - 5 weeks and I need it fixed. Thanks!
Here's the code for the controller step:
Code:
if gamepad_axis_value(0, gp_axislv) > 0
{
keyboard_key_release(vk_down)
gamepad_button_check_released(0,gp_padd)
}
Code:
gamepad_set_axis_deadzone(0, 0.7)
gamepad_set_button_threshold(0, 0.1)
gamepad_button_value(0,gp_face1)
Code:
if gamepad_axis_value(0,gp_axislv) > 0
{
keyboard_key_press(vk_down)
keyboard_key_release(vk_down)
instance_change(AvaCartwheelTechnique, true)
}
Code:
if gamepad_axis_value(0,gp_axislv) > 0
{
keyboard_key_press(vk_down)
keyboard_key_release(vk_down)
instance_change(Ava, true)
}