Posts for Telephia

Experienced Forum User
Joined: 12/11/2017
Posts: 3
Ok that did it! I had an older version and didn't realize it. And the thing with the pictureBox. Thanks so much for the help! And yeah, I figured that was probably it Amaraticando. No worries. Problem solved ^^
Experienced Forum User
Joined: 12/11/2017
Posts: 3
Yes there is? https://imgur.com/a/ZVBp7 Thats both in forms and LuaCanvas. So unless the documentation is horribly wrong...
Post subject: lua forms and canvas issue
Experienced Forum User
Joined: 12/11/2017
Posts: 3
I'm having trouble with lua. I'm trying to get a picture to display and i keep getting attempt to call field 'drawImage' (a nil value). Getting the same kind of error whether I use forms or lua canvas and I can't figure out why.
local pokedex = forms.newform(280, 360, "Kanto Pokedex")

while true do
	local opponent = memory.read_u8(0xCFE5)
	
	if opponent == 36 and pkmnHP ~= 0 then
		forms.drawImage(pokedex, "16.png", 10, 10)
	elseif opponent == 165 and pkmnHP ~= 0 then
		forms.drawImage(pokedex, "19.png", 10, 10)
	end
	emu.frameadvance()
end