Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Camera plugin not working — Gideros Forum

Camera plugin not working

Unknown Member
edited September 2017 in Plugins
Tried to test functionality of the Camera plugin. This is the short sample code I tried it with:
 <pre class="language-lua> 
local tex = Texture.new("tex.png")
stage:addChild(Bitmap.new(tex))
camera.start(tex)
It errored with the message "attempt to index global 'camera' (a nil value)", even though I added the "Camera" plugin. What am I doing wrong?

Comments

  • hgy29hgy29 Maintainer
    at first sight I think you miss
    camera=require 'camera'
    +1 -1 (+2 / -0 )Share on Facebook
Sign In or Register to comment.