Web storage and Array. Question

Get help using Construct 2

Post » Thu Apr 18, 2013 8:01 am

I'm making a game where you have to collect coins. But I ran into a problem that occurs. When you restart the round - coins appear in the same place. I figured out that the ID of coins that are collected player - must enroll in the array and persist in using the web storage. When loading a new round should come check IDs stored in an array of IDs and coins which are present in the array - should retire. But I can `t realize all this. Please help me figure out how to save the ID in the array and the array according to remove objects when loading rounds.

Links to Capx: http://dan-it.ru/Arr.capxover22013-04-18 08:03:54
B
6
S
1
Posts: 34
Reputation: 851

Post » Thu Apr 18, 2013 11:03 am

If you are using UIDs, they are not valid when the game restarts. You cannot persist objects by UIDs.
Jack of all trades, and master of some.
B
29
S
9
G
7
Posts: 174
Reputation: 7,601


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 34 guests