# How can I do this?

Get help using Construct 2

### » Sun Mar 31, 2013 10:26 pm

How can I realize this "catapult"?

I've physics beahiovior but only with this doesnt' work. Can anyone help me?
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

### » Sun Mar 31, 2013 11:07 pm

You'll need it to face the other way. That's sort of just how physics works.

Anyway, here's a little example. I used a revolute joint to connect the pivot point to the teeter-totter itself (this is created in the event sheet). The two blocks have a drag-and-drop behaviour, and the bigger one has a density of 5. The floor and the pivot are set to immovable.
B
57
S
15
G
10
Posts: 912
Reputation: 12,011

### » Mon Apr 01, 2013 12:24 am

Thanks for capx. (i tried all action of physics behavior). The solution is really simple. for me does't work because i've platform behavior too.. I see now how to solve
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

### » Mon Apr 01, 2013 12:43 am

I can't find a solution. Why platform contrasts physics?
the object appears heavier
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

### » Mon Apr 01, 2013 12:43 am

[QUOTE=GeometriX] You'll need it to face the other way. That's sort of just how physics works.
[/QUOTE]

Though this thread has been solved, I'm just going to chime in by saying that made me laugh so hard that coke came out my nose!
B
50
S
14
G
3
Posts: 540
Reputation: 5,636

### » Mon Apr 01, 2013 12:46 am

@gamegamegame You can edit density in the properties panelMr E Bear2013-04-01 00:47:47
B
50
S
14
G
3
Posts: 540
Reputation: 5,636

### » Mon Apr 01, 2013 4:58 pm

[QUOTE=Mr E Bear] @gamegamegame You can edit density in the properties panel[/QUOTE]

Yes, i know. But if platform behavior is disabled this work fine! with platform enabled, doesn't work.

the property "density" of physics behavior has nothing to do!

I need platform for move my objects, how can i resolve this?
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

### » Mon Apr 01, 2013 5:05 pm

In the example given changing the blocks desnity to 0.2 and adding platform behaviour gives the same results as a block without platform behaviour and a density of 5.

You can also use the physics object as a stand-in for a platformer by simulating movement with forces and impulses, such when keydown apply impulse at 90 degrees to jump.
B
50
S
14
G
3
Posts: 540
Reputation: 5,636

### » Mon Apr 01, 2013 7:05 pm

Platform and physics usually don't play well together.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,458

### » Mon Apr 01, 2013 7:06 pm

The platform behavior is on all 3 objects. So i need a solution to work with both behaviors. Or I need to change all events with platform..
B
17
S
5
G
3
Posts: 76
Reputation: 2,948

Next