How can I create an event that effects a object's IID?

Get help using Construct 2

Post » Sat Dec 06, 2014 3:52 pm

I have a level full of coins and the player has the ability to enter different layouts and return. I have an array holding 0 and 1s for each of the coins in the level but I do not know how I can destroy or remove a certain coin using its IID.
B
5
Posts: 9
Reputation: 237

Post » Sat Dec 06, 2014 3:57 pm

Why not make the coins persistent so when they disappear they stay gone when the player returns to the loadout?
B
10
S
2
G
2
Posts: 73
Reputation: 1,044

Post » Sat Dec 06, 2014 4:02 pm

Oh thanks, I should read into what all the behaviours do. But how would I reset a coins state to its original after the level has been completely finished?
B
5
Posts: 9
Reputation: 237

Post » Sat Dec 06, 2014 4:08 pm

not sure I understand correctly - you have a coin that a player gets it offers points ext and disappears.... correct? why do you want to bring it back when the level is complete...?
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:09 pm

Well level 1 is made up of multiple layouts, if the player wishes to replay a level the coins and collectables should be reset but the coins shouldn't respawn throughout moving across the level 1 layouts.
B
5
Posts: 9
Reputation: 237

Post » Sat Dec 06, 2014 4:15 pm

So in the event the player restarts, dies past all lives the level can simply be reset and all assets tied to it will reset also... just use system -> restart layout
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:29 pm

here hope this helps...
You do not have the required permissions to view the files attached to this post.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Dec 06, 2014 4:31 pm

r191 added an action to reset all persisting objects, that may be what you were asking.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Sat Dec 06, 2014 4:40 pm

Thanks but the persistent objects aren't reset on layout reset. Where can I find this action to reset them?
B
5
Posts: 9
Reputation: 237

Post » Sat Dec 06, 2014 5:09 pm

nvm I found it, thanks. Works like a charm now.
B
5
Posts: 9
Reputation: 237


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests