S
SonicTheHedgehog+123
Guest
I want to add an ps4 controller movement to my game. But I dont know how without lying I did search quiet a few hours on youtube and google but this place is the best for an answer. At the end I must be able to go left and right with player jump and duck. I did try various methods but the inputs dont react.
-target is windows
-I do use a dualshock 4 driver on my pc
-target is windows
-I do use a dualshock 4 driver on my pc
Code:
//step event player
hspeed = 0
if keyboard_check(ord("D"))
{
hspeed +=move
image_xscale = 1
}
if keyboard_check(ord("A"))
{
hspeed -=move
image_xscale = -1
}
if jumpbuffer > 0
if bodenbuffer > 0
{
vspeed = -21
jumpbuffer = 0
}
I would be extremly happy if someone has a solution to this