Are you moving the sprite with Bullet behavior?
If yes, disable "Set angle" in Bullet settings.
Then use Bullet->Set angle of motion -> Angle (sprite.x, sprite.y, destination.x, destination.y)
Hi dop2000, thank you for your reply.
Thank you for your code, I can finally make it done. I was about to make a platformer and when a player collects a coin, the coin fly to the right top of the layout, therefore makes an effect like the player is collecting something.
It seemed like I have used inappropriate action to accomplish it. I used action like "move forward" and "set angle toward position". I think I need to learn the built-in function, it's very helpful