# 2D game crashing of simple code

**URL:** <https://forums.unrealengine.com/t/2d-game-crashing-of-simple-code/466876>\
**Category:** Editor Scripting\
**Tags:** savegame, unreal-engine, Array, question\
**Created:** [June 17, 2020, 3:45pm UTC](https://forums.unrealengine.com/t/2d-game-crashing-of-simple-code/466876 "2020-06-17T15:45:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlMi1\_YT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OlMi1\_YT](https://forums.unrealengine.com/u/OlMi1_YT)\
**Post date:** [June 17, 2020, 3:45pm UTC](https://forums.unrealengine.com/t/2d-game-crashing-of-simple-code/466876/1 "2020-06-17T15:45:10Z")

</div>

Hey community,

I built a game based on the 2D Side Scroller example. I added my flipbooks sprites etc, nothing very complicated. Then I followed a tutorial about saving locations, since the player can place stuff and I want it saved.

Everything is running in my Character, but when I was finished UE4 crashed when I pressed PIE, and the packaged game (ETC1, game ran on Galaxy A40 which is powerful enough for my 3D Games) laggs.

The links show my code, I blurred out things which aren´t important and can´t cause this since they were there when the game ran fine.

link:Image1([image — ImgBB](https://ibb.co/17R57KD))  
limk:Image2([image — ImgBB](https://ibb.co/5285kPB))

Links don´t appear in my Preview, so if you dont see them above just paste this:

> **[image](https://ibb.co/17R57KD)**
>
> Image image hosted in ImgBB

> **[image](https://ibb.co/5285kPB)**
>
> Image image hosted in ImgBB
