Question I have a character that moves and holds an Axe in his hand, when player tap certain area the character should throw that Axe forward lets say to 300px and then this Axe should return back in to his hand. Like a boomerang. How can I do that?
probably use bullet behavior on the axe, and after a few seconds.. (when you want the axe to come back to you) set - every tick, set angle toward your character position.
Here: https://www.dropbox.com/s/tj8iqiob5vy8c ... .capx?dl=0
I used Timer and Bullet Behavior.
Man, MPPlantOfficial gets to all the good questions before I can answer. *shakes fist*
Not having looked at MPPlant's capx, I wouldn't actually use a timer here, as you want it to go to a specific point, right? My suggestion would be to use bullet behaviour, and then set two variables (DestinationX, DestinationY) and spawn an invisible destination marker sprite there. Then, when axe hits destination marker, destroy destination marker, and set angle to player.
Oh, also, destroy all destination markers every time the player clicks/touches before setting the next destination marker, otherwise you'll get some interesting results from hanging markers.
Develop games in your browser. Powerful, performant & highly capable.
Thanks guys, I give it a try.