Boomerang magic attack

For questions about using Classic.

Post » Tue Feb 07, 2012 4:58 pm

Hello guys. Im trying to make a magic attack for my game , simular to this one Link (0:36) .
I tryed to do this thing with sine behavior , but orb is moving from x1 to x2 and then returns to x0. Sorry , but i cant explain this better because of my english skills. I just want to make a particle magic attack simular to orb attack from video i linked before.
Thank you
B
20
S
5
G
4
Posts: 39
Reputation: 3,898

Post » Tue Feb 07, 2012 8:36 pm

You can do this easily with the rts movement behavior, just set the deceleration and the rotation speed high(I used 30000 for deceleration and 9000 for the rotation speed, but probably lower values should be fine.)
If you use any object with "solid" attribute on it you should turn off the pathfinding, and be sure the rotating object option is on.

The events should look like this:
+ MouseKeyboard: On Right mouse button Clicked
-> Sprite: Move to mouse
-> Sprite: Add waypoint at Sprite

Of course this is a bruteforce solution, but it works.
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Wed Feb 08, 2012 5:09 am

[QUOTE=Pecek] You can do this easily with the rts movement behavior, just set the deceleration and the rotation speed high(I used 30000 for deceleration and 9000 for the rotation speed, but probably lower values should be fine.)
If you use any object with "solid" attribute on it you should turn off the pathfinding, and be sure the rotating object option is on.

The events should look like this:
+ MouseKeyboard: On Right mouse button Clicked
-> Sprite: Move to mouse
-> Sprite: Add waypoint at Sprite

Of course this is a bruteforce solution, but it works.[/QUOTE]
Thanks , but this doesnt work well. Orb just moves to the point and doesnt return or i am doing something wrong ?eony321v2012-02-08 14:33:27
B
20
S
5
G
4
Posts: 39
Reputation: 3,898

Post » Sat Feb 11, 2012 9:01 pm

http://dl.dropbox.com/u/2721498/2stroke/Construct/cap/boomerang.cap

As far as I see it works.

Btw if you move your character, you have to update the end coordinate(simply add a move to object action to the end.)Pecek2012-02-11 21:02:19
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Sat Feb 11, 2012 9:39 pm

Where did you all get the "newer version of construct" :P?
Because I get the message, my version is too old and on the website, there is still version 1.2. Even construct itself saying it's up2date.
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sat Feb 11, 2012 10:25 pm

http://www.scirra.com/forum/construct-classic-r2-released_topic48884.html
did you downloaded it from here?
B
10
S
6
G
3
Posts: 127
Reputation: 2,481

Post » Sun Feb 12, 2012 12:04 am

Ah, now it works. I just read "r2" and construct say its up2date, so I didn't even try to download there^^. Thankszyblade2012-02-12 00:16:56
B
24
S
9
G
2
Posts: 294
Reputation: 3,160

Post » Sun Feb 12, 2012 6:12 am

[QUOTE=Pecek] http://dl.dropbox.com/u/2721498/2stroke/Construct/cap/boomerang.cap

As far as I see it works.

Btw if you move your character, you have to update the end coordinate(simply add a move to object action to the end.)[/QUOTE]
Oh, i feel so stupid.
Thank you very much.
B
20
S
5
G
4
Posts: 39
Reputation: 3,898

Post » Fri Feb 22, 2013 8:09 pm

Saw this was the newest thread about boomerangs so I figure I'll voice my own situation here:

I'm making a 2d platformer and one of the attacks my character has is a boomerang. It goes forward for a bit and then heads back towards wherever the player is currently. (Pretty much identical to Link's boomerang in Super Smash Bros, but with tighter tracking.)

I'm messing around with Custom Movement, but haven't found a way to redirect the angle to head towards another object.

Any tips?
B
6
Posts: 13
Reputation: 478

Post » Fri Feb 22, 2013 8:46 pm

Uberlou posted an action game cap where the character threw some sort of light weapon that returned. Here is the cap:
Last edited by TunaUppercut on Fri Oct 17, 2014 6:49 am, edited 2 times in total.
B
10
S
3
G
1
Posts: 103
Reputation: 1,390

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests