conditions vs formulas.

Discussion and feedback on Construct 2

Post » Fri Sep 14, 2012 5:34 pm

I'm making a game in which you can choose difficulty, and I'm wondering, in terms of efficiency and performance, is it better for construct 2 to be told exactly what to do or having it calculate what to do?

For instance; I could tell the program that a bullet does 1 dmg when on hard, 2 when on normal and 3 when on easy.
or i could tell him to just set the damage of the bullet to "1*difficulty"

I already made the whole difficulty system with a vast amount of calculations for everything related to it. But which option is better?
B
43
S
12
G
6
Posts: 446
Reputation: 6,797

Post » Fri Sep 14, 2012 5:40 pm

In terms of performance, don't waste your time.

In terms of how manageable your events will be, 1 * difficulty is probably shorter and easier to handle for you.
Scirra Founder
B
366
S
217
G
82
Posts: 23,231
Reputation: 183,460

Post » Fri Sep 14, 2012 5:52 pm

sir yes sir =)
B
43
S
12
G
6
Posts: 446
Reputation: 6,797

Post » Fri Sep 14, 2012 5:53 pm

Yeah, formulas. Otherwise you'd have a mess of sub events that would have to be modified by hand one by one.
Image
B
230
S
27
G
13
Posts: 1,781
Reputation: 18,163


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests