Making the sprite "fall" out of the layout.

Get help using Construct 2

Post » Fri Dec 02, 2016 9:33 pm

What I want to do is this: Everytime a bullet hits the sprite, the sprite should fall out in some arc-kind of motion. Outside of the layout it will be destroyed. How exactly do I do that? I hope you understand how I mean it. It should kind of get thrown out of the layout. The sprite is on an object that is solid and has the behaviours "8Direction", "Platform" "Destroy outside layout" and "Bound to layout". Does anyone have an idea?
B
14
S
3
Posts: 50
Reputation: 907

Post » Fri Dec 02, 2016 9:44 pm

Use the Sine behavior for it, or a simple math, any arc start with a second (or more. The more, the smooth it is) degree equation, it's a simple math doing the movement with X=1*X and Y=2*X for example, and enable the |destroy outside layout|, disable any other behavior the object have.
Image
B
108
S
24
G
18
Posts: 1,373
Reputation: 22,824

Post » Thu Dec 08, 2016 11:24 pm

TELLES0808 wrote:Use the Sine behavior for it, or a simple math, any arc start with a second (or more. The more, the smooth it is) degree equation, it's a simple math doing the movement with X=1*X and Y=2*X for example, and enable the |destroy outside layout|, disable any other behavior the object have.

How do I do "a simple math"?

Using the sine behavior didn't work. It just moves the sprite horizontally.

I'm pretty new to this and I can't find many tutorials maybe because I don't know where to look for them. Googling doesn't seem to help.
B
14
S
3
Posts: 50
Reputation: 907

Post » Fri Dec 09, 2016 12:56 am

https://www.scirra.com/tutorials

Create a new project and search in the Templates for Sine.
Image
B
108
S
24
G
18
Posts: 1,373
Reputation: 22,824


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests