Comments

Log in with itch.io to leave a comment.

(1 edit)

Hi, I was hoping to use this, but when I load it up into Game Creator Pro and attempt to play it, I get: ScriptRuntimeException:code.lua:(54,11-35): attempt to index a nil value.

I saw that some of the methods were deprecated, so I tried to replace them with the new ones. But it still seems to have the same error...

Can you provide more details about what functions are giving the error, and what you tried to replace it with? I haven't used PV8 in some time, so I'm not sure about the current status of the API.

(1 edit)

Thanks for getting back to me about this. I appreciate it sooo much, I really do.

This is what the file has when I downloaded it.


--called once at the start of the program.
function Init()
apiBridge:ChangeBackgroundColor(0)
apiBridge:RebuildScreenBuffer()
--apiBridge:PlaySong ( false )
end


The PV8 manual has these functions under v0.7.0a API changes, so I altered it to


--called once at the start of the program.
function Init()
apiBridge:BackgroundColor(0)
apiBridge:RedrawDisplay()
--apiBridge:PlaySong ( false )
end


But it has the same error as above. Line 54 is the BackgroundColor function. 

I worry that i'm going to pass invalid arguments into these functions that are all defined somewhere else. How do I find out whether the background color 0 is even initialized? I would have gone and checked that next, but the BackgroundColor function is hidden away somewhere in PV8 I guess, and I'm not sure how I would go looking for it. Sorry for my confusion, but I don't know what I would do next to find the problem.

I just talked with the guy who makes PV8 and an updated version of this MicroPlatformer is actually included in the demos that come with PV8. So I would use that one instead!

Oh, okay, thanks!

Amazing work and THANK YOU for porting this!