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
386
S
229
G
87
Posts: 24,207
Reputation: 191,582

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
240
S
28
G
13
Posts: 1,787
Reputation: 18,535


Return to Construct 2 General

Who is online

Users browsing this forum: Tokinsom and 3 guests