JSTileMap上的EXC_BAD_ACCESS

时间:2016-03-09 09:32:14

标签: ios sprite-kit jstilemap

我试图在我的场景中添加tmx文件,但我得到了

  

EXC_BAD_ACCESS

请帮帮我

![My project structure is this

enter image description here enter image description here

2 个答案:

答案 0 :(得分:0)

要使数字值为int,请使用Int()而不是(int)

e.g。

let a: Int = 5
let b: Double = Int(a)

答案 1 :(得分:0)

它奏效了。我以错误的方式保存文件。必须以Base64压缩格式保存。