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: 199
Reputation: 2,386

Post » Wed Aug 02, 2017 11:24 am

They both do the same thing.
B
48
S
19
G
87
Posts: 2,317
Reputation: 51,518

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: 199
Reputation: 2,386

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
38
S
10
G
7
Posts: 501
Reputation: 7,129


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 27 guests