How do I use friction to attach objects with physics

Get help using Construct 2

Post » Thu Apr 03, 2014 7:27 am

One {untested} idea.

Place an invisible box pinned to the player but covering the area the other boxes can stack up. Then every x seconds just count the boxes in this area.

And as I was typing another (untested) idea fizzeled across my brain cells

How about giving each dropped box an instance variable (ivStacked ?) And then every now and again you could step through each box an set this ivStacked if it is "overlapping at offset" (positive y) and then count up these ? In fact you could probably do this offset method without the need for the ivStacked....

Bit busy today but I will try to test this out later and post the capx.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Thu Apr 03, 2014 8:10 am

While waiting for "She who must be Obeyed " to get ready...

Using idea 1 I get ...
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Thu Apr 03, 2014 8:18 am

and a very quick edit later I get.

(note this uses "families" which is only available in the non-free versions of C2)

This is probably a better method - and just taking this a few steps further it would be a good way to add joints....)
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Sat Apr 05, 2014 11:48 pm

@RamPackWobble Wow, you blew my mind, it is really amazing. I do have access to family, which I love (it saves so much time).

You mean joints in order to keep them on top? I'm still trying to learn how to use physics, but I will give it a try.

Thanks so much for all the help!!! :)
B
8
S
3
G
1
Posts: 135
Reputation: 2,209

Post » Sun Apr 06, 2014 2:08 pm

gfigueroa wrote:You mean joints in order to keep them on top?


Yes - as @Littlestain said , it would give you much more control over the stacked boxes.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Previous

Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev and 26 guests