6 months ago

(இ﹏இ`。) thank you internet stranger (இ﹏இ`。)


In game maker specifically you may use following:

		
			direction = point_direction(x, y, x+x_speed, y+y_speed) speed = point_distance(x, y, x+x_speed, y+y_speed)
		
	

(compare current and future x/y coordinates and return values)

Reverse the process to get x/y_speed:

		
			x_speed = lengthdir_x(speed, direction) y_speed = lengthdir_y(speed, direction) Note: Added this post because its still viewed in relation to Game Maker: Studio and its specific functions. Maybe it has no value for the person who asked originally but i hope it will help some Game Maker users who wander here
		
	


6 comments

Loading...

Next up

Happy holidays everyone! I hope you all have an amazing time and a wonderful new year! Please look after yourselves and keep being awesome!

Happy (late) Sunday everyone! I hope you're all doing well! Got my Minecarts working right!

Had to add a better rotation option for cycling the directions and added back in the Destroy menu option.

EXCUSE ME, He Asked for No Pickles.

Our 2024 Advent Calendar has opened! Day 18: @Otis_Le_PoOtis is the Creator of Bondee’s Barnyard and posts updates about their dev journey and their work on the sequel!) Accept the quest and give them a follow to get Coins and a seasonal sticker!

WOOP!

IT'S FINALLY HERE!

It's festive Pokemon time! And that means Pokemon in cute accessories!

I'm gonna need SO many of these Eevee

Also bonus Snover shiny! and this Necrozma?

Our 2024 Advent Calendar has opened! Day 24: @NickPerson is a great Creator who makes Five Nights at Freddy's fan games! Accept the quest and give them a follow to get Coins and a seasonal sticker!

YUP! That's all working great! Need to make a proper sprite for the Button Track, and apparently I never added Buttons to the Save System, so that needs done at some point. Also Button Menu needs updated to current style.

Now, slep.

#gameMaker