What's the most efficient way to move objects in 1 direction

Get help using Construct 2

Post » Wed Jun 01, 2016 10:34 am

Hi,
what's happening in my game is that you are falling endless and you can pick up coins while falling. To make this work, the coins get spawned on the bottom and move to the top.

They get spawned every X seconds (most likely between 1-5).

Do I use the bullet behaviour?
8 Direction Movement and simulate a Control?
Set the Y. Axis every Tick?

Which method is the most efficient for an app? Thank you
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Wed Jun 01, 2016 10:47 am

I think the "Set the Y. Axis every Tick?" method would most efficient for this app,

But I would recommend using the dt system expression when setting the objects Y value every tick,

eg.
Coin.Y = (Coin.Y - (COIN_SPEED * dt))
B
30
S
4
G
3
Posts: 67
Reputation: 2,329

Post » Wed Jun 01, 2016 10:56 am

yes I thought so. I used this in my last App and it worked just fine.
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Wed Jun 01, 2016 2:22 pm

Far too many people depend on behaviors , anytime you can do with events what you need then I recommend avoiding behaviors , too me I prefer more control with events .
What I know would fill a Book , what I don't know would fill a Library
B
37
S
12
G
29
Posts: 331
Reputation: 16,499


Return to How do I....?

Who is online

Users browsing this forum: Fradno and 17 guests