GameMaker: Studio

GameMaker: Studio

View Stats:
ZyroSH Apr 30, 2017 @ 1:36am
Help with dashing!
I have had to reuplod this 3 times because the 1st 2 didnt work so im gonna make it quick. I need help with dashing on a platformer. so when you click somewhere in the air you dash a short distance towards your mouse. Give me some pointers or ways of doing it!

Thanks
< >
Showing 1-1 of 1 comments
DarkToxic Apr 30, 2017 @ 1:51am 
// Create Event: Dash = false; // Step Event: if(mouse_check_button_pressed(mb_left)){ if(Dash == false){ Dash = true; _x = mouse_x; _y = mouse_y; } } if(Dash == true){ speed = 5 if(point_distance(x, y, _x, _y) > speed){ move_towards_point(_x, _y, speed); }else{ speed = 0; Dash = false; } }
Last edited by DarkToxic; Apr 30, 2017 @ 1:52am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Apr 30, 2017 @ 1:36am
Posts: 1