More efficient horizontal movement?

Get help using Construct 2

Post » Tue Apr 09, 2013 9:07 pm

I'll start working in a horizontal tower defense for mobile and I was wondering what would be the most efficient way to handle the units movement. The movement of the unit's it completely horizontal. Something like this:

Which mechanic is more resource friendly? Platform, bullet, or just working directly with something like: this.x + this.x * dt
B
34
S
4
G
5
Posts: 84
Reputation: 4,835

Post » Tue Apr 09, 2013 9:19 pm

I believe in all the behaviors, but, to make this kinda of game I usually use the platform behavior when the terrain is irregular and the custom movement when not.

That's simple to use the platform behavior, bullet and sine behaviors, but I prefer the custom movement because it will use all their variables, while the platform will need a better AI.

so, if your terrain is in line, go ahead and use the bullet behavior. Set the direction of movement (your sprite always start moving of left to right) and make the conditionals meet the collision events to change their sprites for a fight animations, while setup the speed to 0, easy like this!
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,213
Reputation: 18,484

Post » Tue Apr 09, 2013 10:24 pm

The terrain will be completely plain, so I think I'll go with bullet behaviour. Thanks!
B
34
S
4
G
5
Posts: 84
Reputation: 4,835

Post » Tue Apr 09, 2013 11:01 pm

@skyhunter93 don't miss to give away from the gravity (it should be = 0)..
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,213
Reputation: 18,484


Return to How do I....?

Who is online

Users browsing this forum: h1k3, Unconnected and 0 guests