How do I make objects fall (the best way)

Get help using Construct 2

Post » Mon May 19, 2014 9:49 pm

Hello, recently I've found myself creating a game, which uses a lot of falling objects from the top.

Imagine something like falling rain, where single drops appear above layout and fall down to the ground.
So the drops always fall in the same direction and (to simplify) the same speed (no gravitation).

My question is: which behaviour is the best for this kind of action?

I can reproduce this movement with various behaviours, the point is, I'm looking for the "fastest" mechanism.

For example, I tried using:
Code: Select all
Every tick -> Move forward(speed * dt)

But later I found out, that Bullet behaviour works much much faster.

So I started to experiment, for example with Physics with and without checked 'Bullet' in properties.

I can imagine a lot of possible ways to do this...
- Physics
- Bullet
- 8 Direction
- Hard code
- Custom Mov.
- Platform
And so on...

Back to my question, what do you think, which way provides the best performance?
B
6
G
1
Posts: 28
Reputation: 458

Post » Mon May 19, 2014 10:08 pm

Do the objects interact with anything? If not why not use particles.
B
48
S
16
G
9
Posts: 1,098
Reputation: 11,197

Post » Mon May 19, 2014 11:12 pm

Yes, they do interact. Main plot is about collecting items falling from the top so I need to use collisions.
B
6
G
1
Posts: 28
Reputation: 458


Return to How do I....?

Who is online

Users browsing this forum: AllanR, Artcadev and 15 guests