How do I do a weapon like a boomerang

Get help using Construct 2

Post » Fri Apr 07, 2017 12:43 pm

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?
B
14
S
2
Posts: 21
Reputation: 744

Post » Fri Apr 07, 2017 2:12 pm

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.
B
8
S
3
Posts: 46
Reputation: 708

Post » Fri Apr 07, 2017 2:48 pm

Here: https://www.dropbox.com/s/tj8iqiob5vy8c ... .capx?dl=0

I used Timer and Bullet Behavior.
Image Image Image
B
31
S
11
G
27
Posts: 748
Reputation: 17,093

Post » Fri Apr 07, 2017 5:48 pm

Man, @MPPlantOfficial gets to all the good questions before I can answer. *shakes fist* :P
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Fri Apr 07, 2017 5:50 pm

@foxium

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.
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Fri Apr 07, 2017 7:23 pm

Thanks guys, I give it a try.
B
14
S
2
Posts: 21
Reputation: 744


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, valefor, Yahoo [Bot] and 6 guests