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
10
S
4
G
2
Posts: 197
Reputation: 2,382

Post » Wed Aug 02, 2017 11:24 am

They both do the same thing.
B
47
S
17
G
81
Posts: 2,230
Reputation: 48,107

Post » Wed Aug 02, 2017 11:48 am

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

yes they working
B
10
S
4
G
2
Posts: 197
Reputation: 2,382

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
35
S
9
G
7
Posts: 467
Reputation: 6,864


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], worm1 and 28 guests