How do i make a 'glide [secs] secs to x: [x] y: [y] easing [easing]' block

Im trying to make a [scratchblocks]glide (1) secs to x: (0) y: (0) easing [linear v] :: motion [/scratchblocks] block with the animation library but it dosent work properly. how do you do it?

Would this (rolled into a custom block) do what you want?

untitled script pic (25)

i dont want to change the direction

Then save the direction and then load it again.

How about something like this?

untitled script pic (78)

I just modified the glide block in the animations library to just use the distance to the given x and y, as well as the direction to that same position, rather than using given steps, and the current sprite direction. There may be a better way than this, but I'm just showing you that you don't even need to set the sprites direction.

Thank you, bh should add this block to the library...

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.