kittykatattack / hexi

Make games the fun way!
MIT License
551 stars 83 forks source link

Issues with this.FrameSeries() asking for 11 frame to be cached #37

Open jrfoxw opened 7 years ago

jrfoxw commented 7 years ago

let g = ...

let playerFrames, player

function setup(){

playerFrames = g.frameSeries(11, 18, "ws", ".png") player = g.sprite(playerFrames)

}

image

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 :)