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
42
S
11
G
5
Posts: 446
Reputation: 6,417

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Fri Sep 14, 2012 5:52 pm

sir yes sir =)
B
42
S
11
G
5
Posts: 446
Reputation: 6,417

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
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, nimos100 and 7 guests