GameMaker: Studio

GameMaker: Studio

View Stats:
robert_belko May 26, 2016 @ 11:23am
Gamepad Axis Problem-Like Thingy
So,there's a point_direction code doing this - whenever the right joystick's point does not equal 0(the horizontal and vertical one as well),then face the direction the joystick is. BUT,as i've noticed,this only works when doing it in a circular change. So,whenever i move the joystick in one direction,not in circular,it does not seem to react to it. Any possible fixes that i could try?
< >
Showing 1-11 of 11 comments
woodsguide May 26, 2016 @ 8:55pm 
maybe somehow clear the state of the mouse? so that it will re-read the joystick....

shot in the dark ;o)
fakenoose May 27, 2016 @ 12:21am 
gamepad_set_axis_deadzone(0,0.7);

The gamepad axis have a resting place, this should remove the resting place mis read.
woodsguide May 27, 2016 @ 1:04am 
0.7 seems pretty steep... almost 3/4 the way to the end of the throw... maybe bringing it down will register it..

i know gamepad alignment issues are VERY common in general
robert_belko May 27, 2016 @ 9:57am 
oh,good to know that. but could you tell me some kind of tutorial about "deadzone". Is it the limit the joystick can't move further or it's the "reaction" zone? Thanks for explaining.
robert_belko May 27, 2016 @ 10:04am 
oh btw the point_direction is triggered by axis_rh and rv not being 0,but i'll try the deadzone one as well. i'll let you guys know how it went.
robert_belko May 27, 2016 @ 10:24am 
i got it fixed by not having that " if the right stick's horizontal and vertical axis ain't 0 then do it" thing which after writing this i found out that that's why it didn't work. So,yeah. Thanks people!
robert_belko May 27, 2016 @ 10:36am 
now to only problem i have is that whenever the axis is still the image_angle is 0. how could i get a workaround to have something like whenever the axis_rh AND rv are 0,then point in the direction the character's walking towards,but if the axis_rh or the rv aren't 0 then point to it.
i think i just found the answer inside my question.
pardon me for a minute there.
robert_belko May 27, 2016 @ 10:39am 
i was wrong.
robert_belko May 27, 2016 @ 11:04am 
whatever,got it working anyway
see ya
woodsguide May 28, 2016 @ 4:51pm 
i love it and hate it when i beat the crap outta myself and finally bring my issue to the forums only to solve it before anybody gets a response ;o)


glad to hear you got it working
robert_belko May 29, 2016 @ 6:58am 
thanks. oh,you actually know GM:S networking?
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: May 26, 2016 @ 11:23am
Posts: 11