How do I destroy obiect permamently

Just started using Construct 2? Post your questions here

Post » Wed May 25, 2016 12:48 pm

@PixelPower what is so funny?
And why do you add stupid stuff in my quote?

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Wed May 25, 2016 1:52 pm

Here I did it for you perma destroy!!

http://www14.zippyshare.com/v/LCvMyZ04/file.html
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Wed May 25, 2016 1:58 pm

@PixelPower your example is a local save for 1 object
the question was for a bunch of objects/enemies

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Wed May 25, 2016 2:02 pm

fm4fanAT wrote:@PixelPower your example is a local save for 1 object
the question was for a bunch of objects/enemies


1) If I add a bunch of object he will be confused with the code. Now that he has seen the code he can understand and duplicate it.
2) If someone is new they don't know much about local storage and such. Thats why I made a simple example.

3)If you know how to do it, why did you download the example it wasn't for you it was for him.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Wed May 25, 2016 3:37 pm

@PixelPower ok something happen, but when i destroy one sprite and when i refresh game, all sprites gone on start of layout
B
25
S
8
Posts: 217
Reputation: 2,177

Post » Wed May 25, 2016 5:24 pm

Ofcours. And besides that. Your question is: How do i recreate all sprites after reopening the game exactly the same as the moment that i (previous) left the game.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed May 25, 2016 6:12 pm

Here you go run it , kill one then close. Open it the one you killed will be gone but the other one will stay. Then you can kill second one and it will be gone for good too.

http://www43.zippyshare.com/v/pwuvC0fL/file.html
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Thu May 26, 2016 10:57 am

@PixelPower its possible to addd your code to my game when in my game i have 3000 sprites?
B
25
S
8
Posts: 217
Reputation: 2,177

Post » Thu May 26, 2016 11:03 am

IGDev wrote:@PixelPower its possible to addd your code to my game when in my game i have 3000 sprites?


If you waited till you have 3,000 here is a tip in the future ask the question before you got that far into the game. Honestly I never made the type of game where you need things permanently destroyed. What type of game are you making?
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615

Post » Thu May 26, 2016 1:19 pm

@PixelPower one sprite its dirt so digging type game, online game when you log aut and log in part of sprites should not load
B
25
S
8
Posts: 217
Reputation: 2,177

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: JackTYGA and 2 guests