1 year 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

I now have working Vertical Gates! Also reworked the build code so that the Wall parts are automatically built either side of the Gates, saves me having to work it out each time.

Adding a key system for Gates and stuff (on top of the existing Button system which is now over-rided by keys) I can also have other conditions like a specific number of enemies need to be killed before they open.

Need to fix the collision detection.

WOOP!

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

Mob locks work! Activating the Beacon locks the gate and spawns mobs, killing them all grants a reward and unlocks it letting you out again!

Mae Borowski is the main character of Night in the Woods! It's an adventure game that tells the story of her return to her hometown of Possum Springs. She was confirmed as canonically pan in a social media post by the game's creator Scott Benson.

Gimmi dem Goblins!!

Quick and dirty Quest system and UI. No idea how to do strike through text so I just added [DONE] to the completed tasks.

The Knightling launches on August 28! Wishlist it now so you don't miss out: https://bit.ly/KnightlingSteam

To celebrate the game's impending release, we've added The Knightling Pack and The Knightling Community Pack back to the Shop!

Nothing I make will ever be better than the tiny birbs