Which event is correct or better? IMG

Get help using Construct 2

Post » Wed Aug 02, 2017 11:13 am

Information about killed objects should be reset in restart button or start of layout. Which event is correct or better?
thanks
Image
B
11
S
5
G
2
Posts: 214
Reputation: 2,541

Post » Wed Aug 02, 2017 11:24 am

They both do the same thing.
B
52
S
21
G
93
Posts: 2,410
Reputation: 55,008

Post » Wed Aug 02, 2017 11:48 am

@plinkie
plinkie wrote:They both do the same thing.

yes they working
B
11
S
5
G
2
Posts: 214
Reputation: 2,541

Post » Wed Aug 02, 2017 12:44 pm

@marcinkowski

Personally, I wouldn't even bother with the Killed > 0 check, I'd just reset the variable to 0 regardless.

Of the two, though, the first one is better if you are going to add other subevents On start of layout, otherwise there is no real difference and is not something you should be wasting time on when there are so many other more productive things you could be doing to make your game better.

See: https://www.scirra.com/blog/83/optimisa ... -your-time
Find all the Construct 2 games that were on Steam Greenlight here
B
41
S
11
G
7
Posts: 511
Reputation: 7,326


Return to How do I....?

Who is online

Users browsing this forum: Invidel, OddConfection and 11 guests