Help with gen paint


#1

I cannot make data arrays from gen paint work without reloading page in browser. the images will only show if I reload page the game is shown in. Can anybody help?
var frame0 = [
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘…88…8888’,
‘…88…8888’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘88…88’,
‘88…’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘…88…8888’,
‘…88…8888’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘88…88’,
‘…88’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘8888…88…’,
‘8888…88…’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘88…88’,
‘88…’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘8888…88…’,
‘8888…88…’,
‘8888888888’,
‘8888888888’,
‘8888888888’,
‘88…88’,
‘…88’];

	var pixelSize = 2
	var frameWidth = pixelSize * 10;
	var frameHeight = pixelSize * 10;
	var frameMax = 4;
	var margin = 0;
	var spacing = 0;
	var texture = game.create.texture('txt', frame0, 2, 2, 0);
	game.cache.addSpriteSheet('pinky', null, texture.baseTexture.source, frameWidth, frameHeight, frameMax, margin, spacing);