J
Jemios
Guest
Hi everyone, I've started using GM2 less than a month ago and I definitely have bitten more than i can chew.
Bit desperate here, I am running out of time and I have a prototype for a game I needed to make for trying out for a school.
I need my player to rope swing but in a side-scrolling endless runner setting so i need my player to always stay on the left side of the room, in a sort of infinite level like in an endless runner.
I tried using this video of Shaun Spalding as a starter and from then on modify the code so to use the spacebar to instantly draw a line/rope towards the sky and then complete the swing once i release the spacebar.
I know that i need to do something like this:
And then maybe use the variable from the video? I honestly have no clue i can't do it alone. so any help would be immensely appreciated.
I inspired myself from this game and this one if my explanation wasn't clear enough. Thanks a lot everyone.
Bit desperate here, I am running out of time and I have a prototype for a game I needed to make for trying out for a school.
I need my player to rope swing but in a side-scrolling endless runner setting so i need my player to always stay on the left side of the room, in a sort of infinite level like in an endless runner.
I tried using this video of Shaun Spalding as a starter and from then on modify the code so to use the spacebar to instantly draw a line/rope towards the sky and then complete the swing once i release the spacebar.
I know that i need to do something like this:
GML:
if(mouse_check_button_released(vk_space))
{
if (state == pState.swing)
spd = 1;
xx = mouse_x;
yy = mouse_y;
draw_line(x,y,xx,yy)
}
I inspired myself from this game and this one if my explanation wasn't clear enough. Thanks a lot everyone.