We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce59d5 commit cce4fdbCopy full SHA for cce4fdb
Features/Save/source/PlayState.hx
@@ -157,13 +157,15 @@ class PlayState extends FlxState
157
// You can also do something like gameSave.data.randomBool = true;
158
// and if randomBool didn't exist before, then flash will create a boolean there.
159
// though it's best to make a new type() before setting it, so you know the correct type is kept
160
- _gameSave.data.boxPositions = new Array();
+ var boxPositions = new Array();
161
162
for (box in _boxGroup)
163
{
164
- _gameSave.data.boxPositions.push(FlxPoint.get(box.x, box.y));
+ boxPositions.push(FlxPoint.get(box.x, box.y));
165
}
166
167
+ _gameSave.data.boxPositions = boxPositions;
168
+
169
_topText.text = "Created a new save, and saved positions";
170
_topText.alpha = 1;
171
0 commit comments