Hello everyone!
I am trying to rebuild some things into construct from game maker pro.
I use lengthdir_x and lengthdir_y in GM for some functions in my code. How would I achieve this using construct 2?
here is how gamemaker explains its purpose:
Description
This function seems confusing at first, but it's not really. It is used to get the x component of a position "len" pixels from the starting point and in direction "dir". Imagine a circle around your instance, then imagine a point anywhere on that circle. To move to that point we need to move the object so many pixels in that direction... so this function (when used with lengthdir_y) gets the position of that point on the circle to be used in code by the instance. See the image below for details:
Source:
Game Maker Docs