Talk:2DShooter Part3

From Unify Community Wiki
Jump to: navigation, search

On windows machines the level editor does not work.

In Scripts/_Game/LoadLevel.js line 13:

Replace the string "\n" with "\r?\n". I.e.

From: var dataLines = levelData.text.Split("\n"[0]);

To: var dataLines = levelData.text.Split("\r?\n"[0]);

This allows levels to work even when saved with Windows newline formats.

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox