A
Andrea Dominante
Guest
Hi, first of all congrats for the brand new, fresh forums
Problem: I am making an Android simple platform where commands rotate the room (view_angle) and not the character. Commands are supposed to be simple touch: when the touch is on the right relatively to the character, the room rotates right and viceversa.
Well, I have no idea on how to implement this. The problem comes on touch. I am not able to get the mouse position in an absolute way, but it all comes in relation to the view angle, so basicly when I tell it to rotate right when mouse_x is on the right it gets all glitchy due to the room rotation.
I even tried to to do something like
if mouse_x > view_wport/2
rotate right thing
else if mouse_x < view_wport/2
rotate left thing
Thinking of view_wport as the absolute view of the room as seen on the screen, despite the view angle, but it does not work. So my second attempt is to create two simple image_alpha = 0 buttons that attach to the right and the left of the view port halfway, but problems come due to the fact I have no idea on how to operate on view 0 and 1 as if they were totally independent.
Any help?
Problem: I am making an Android simple platform where commands rotate the room (view_angle) and not the character. Commands are supposed to be simple touch: when the touch is on the right relatively to the character, the room rotates right and viceversa.
Well, I have no idea on how to implement this. The problem comes on touch. I am not able to get the mouse position in an absolute way, but it all comes in relation to the view angle, so basicly when I tell it to rotate right when mouse_x is on the right it gets all glitchy due to the room rotation.
I even tried to to do something like
if mouse_x > view_wport/2
rotate right thing
else if mouse_x < view_wport/2
rotate left thing
Thinking of view_wport as the absolute view of the room as seen on the screen, despite the view angle, but it does not work. So my second attempt is to create two simple image_alpha = 0 buttons that attach to the right and the left of the view port halfway, but problems come due to the fact I have no idea on how to operate on view 0 and 1 as if they were totally independent.
Any help?