Open jrfoxw opened 7 years ago
let g = ...
let playerFrames, player
function setup(){
playerFrames = g.frameSeries(11, 18, "ws", ".png") player = g.sprite(playerFrames)
}
The error above points to the code at top.
I think I might be misunderstanding how the cache works, although it works the default way of putting every mapped texture into an array
e.g. let player = g.sprite([ "player_00.png", "player_01.png", ... ])
Any help would be grand :)
let g = ...
let playerFrames, player
function setup(){
playerFrames = g.frameSeries(11, 18, "ws", ".png") player = g.sprite(playerFrames)
}
The error above points to the code at top.
I think I might be misunderstanding how the cache works, although it works the default way of putting every mapped texture into an array
e.g. let player = g.sprite([ "player_00.png", "player_01.png", ... ])
Any help would be grand :)