Your "imports" do not include the path to the Class.lua file. You need to add:
import Turbine.Utils
and your original code will work. A word of advice, it is simpler to copy the Turbine sample files that you find yourself using into your own project and import them from there. That way if you ever build something worthy of publishing you won't have to worry about users having the Turbine samples. You also won't have to worry about changes to the Turbine samples breaking your plugin (back in November, Turbine moved the Class.lua file from one folder to another and broke a number of plugins).
Last edited by Garan : 07-31-2011 at 05:32 PM.
|