Does any one knows how to make a boomerang?

For questions about using Classic.

Post » Thu Jan 29, 2009 10:32 pm

Like in the title: Does any one knows how to make a boomerang event? I was thinking about it. Will it need advanced math sentence?
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Thu Jan 29, 2009 11:17 pm

Sounds like a job for TimeDelta!

Give it an initial speed. Each tick, subtract some multiple of TimeDelta from its speed. It'll go out, eventually slow down, turn around, and accelerate back to you.

More complicated events could make more complicated behaviors of course.
B
2
G
3
Posts: 71
Reputation: 992

Post » Thu Jan 29, 2009 11:51 pm

[quote="fieari":6yc0493w]Sounds like a job for TimeDelta!

Give it an initial speed. Each tick, subtract some multiple of TimeDelta from its speed. It'll go out, eventually slow down, turn around, and accelerate back to you.

More complicated events could make more complicated behaviors of course.[/quote:6yc0493w]
Sounds like a good way of doing it to me.

My first thought was that this was too simple of a method because it only affects horizontal motion. My second thought was that I think it would get much more complicated to start doing vertical motion as well. I'd stick to fieari's method, at least for awhile.
B
3
S
2
G
4
Posts: 271
Reputation: 2,017

Post » Fri Jan 30, 2009 1:20 am

You could possibly use the sine movement, I think it still works in tandem with other behaviors.
Image Image
B
161
S
48
G
90
Posts: 7,354
Reputation: 66,763

Post » Fri Jan 30, 2009 7:42 am

[quote="newt":94m67hyj]You could possibly use the sine movement, I think it still works in tandem with other behaviors.[/quote:94m67hyj]
brilliant
B
3
S
2
G
4
Posts: 271
Reputation: 2,017


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests