How do I make a Conveyor Belt

Get help using Construct 2

Post » Sat Dec 17, 2011 2:46 pm

Does anyone know a easy way of making a Conveyor Belt?

It would look something like this:

Kyatric2011-12-17 14:51:23
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sat Dec 17, 2011 2:52 pm

B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sat Dec 17, 2011 2:53 pm

@smitchell: your image does not display (I tried to "correct" the link, but it appears to be a wrong link anyway).

Also be more specific as in what setting/configuration you would like a conveyor belt to be displayed/simulated in your game.

Edit: Ha ok, I've seen your picture, still have to copy it as text and copy it in the url bar.
Well you could use moving platforms. Refer to the moving platforms example in your c2 folder\examples.Kyatric2011-12-17 14:54:36
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Sat Dec 17, 2011 2:56 pm

@Kyatric

Hmm, Well thats what i initially tried, But i think I need to use physics, Because I want the user to be able to add boxed on top of the conveyor belt, then adjust the speed of the belt so it will fling the box according to physics.. But how would i wrap the two circles with the belt?
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sat Dec 17, 2011 6:04 pm

Make every segment of the belt as an object and use distant joints from physics behavior to attach them together. The rollers need to have physics as well with circle collision. Then apply a torque to the rollers through events to make them spin.

As an alternative you can make an object with an animation of a conveyor belt and make the other objects be pushed when overlapping it. This solution would be simpler, but less "interactive" though.
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Sat Dec 17, 2011 9:41 pm

It depends if your game is heavily physics based or not. The simplest way to do it is to make an object with several animations - the centre sections and the end caps if needed. Animate these graphically and use 'is overlapping' while comparing position to apply a directional movement.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Sat Dec 17, 2011 10:05 pm

1. belt object, physics behavior, immovable = true
2. box object, physics behavior
3. box on collision with belt -> box apply x-force 100
4. ???
5. profit! :D
B
33
S
6
G
7
Posts: 338
Reputation: 7,424


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests