KyleRansford
Member
Hello,
I'm making a mobile game where it's played in portrait mode and the screen is auto scrolling upward with the o_player moving in a top down style movement and while I have some input methods already done, I'm trying to make an input method where when the player "touches" a part of the screen the o_player moves along with the finger when dragging on the screen.
Like what is seen with some of the arcade style space shooting games.
I already have been experimenting with this line of code
But instead of moving along with the touch, the o_player "jumps" to that position.
I'd like to make it where the player can touch anywhere on the screen and while dragging their finger the o_player moves along with the movement of the finger without having to directly touch the o_player.
Also, I'd want the o_player to still recognize the solid collision I set up, since when using the o_player.x = mouse_x; o_player.y = mouse_y; method the o_player can be drug through solids.
I'm making a mobile game where it's played in portrait mode and the screen is auto scrolling upward with the o_player moving in a top down style movement and while I have some input methods already done, I'm trying to make an input method where when the player "touches" a part of the screen the o_player moves along with the finger when dragging on the screen.
Like what is seen with some of the arcade style space shooting games.
I already have been experimenting with this line of code
Code:
o_player.x = mouse_x;
o_player.y = mouse_y;
I'd like to make it where the player can touch anywhere on the screen and while dragging their finger the o_player moves along with the movement of the finger without having to directly touch the o_player.
Also, I'd want the o_player to still recognize the solid collision I set up, since when using the o_player.x = mouse_x; o_player.y = mouse_y; method the o_player can be drug through solids.
Last edited: