Why wont the layout restart?

Just started using Construct 2? Post your questions here

Post » Wed Jun 17, 2015 7:38 am

I have made a variable that says "If global variable (health) is less than or equal to 0, destroy player, destroy playerbox and restart layout." It appears to destroy the player and playerbox, but not re spawn them, so I am left with a screen that has only the background. Can anyone help me? This is a platform game, and playerbox is similar to that of the platform box in the tutorial btw. PS: It would be great if anyone could tell me how to upload a picture.

This is my first post,so not entirely sure of the protocol here
B
4
Posts: 14
Reputation: 228

Post » Wed Jun 17, 2015 6:01 pm

Did you put a condition on start of layout > set health back to max?
B
8
S
1
Posts: 34
Reputation: 439

Post » Wed Jun 17, 2015 9:14 pm

OMG NO! *face palm* Thank u so much!
B
4
Posts: 14
Reputation: 228

Post » Wed Jun 17, 2015 11:24 pm

No problem. I once spent a few hours figuring out why my layout reset doesn't work :)
B
8
S
1
Posts: 34
Reputation: 439


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests