i was trying to make it so that on every frame, TPT would repeat this line:
tpt.set_property("type","none","sing")
so, I placed it within tpt.register_step(function func)
to get
tpt.register_step(tpt.set_property("type","none","sing"))
but it only works on one frame, and whenever I draw sing, it doesnt disappear after >.<
please help!
no, that changes "none" into "sing" :P
tpt.set_property(...) isn't a function. tpt.set_property is a function, but you can't pass it directly to tpt.register_step while specifying what arguments it should get. Instead, create a new function that calls tpt.set_property with the right arguments, and pass that to tpt.register_step.
In Lua, you can create a new function using:
function()
--code goes here
end
So in this case, you would use:
tpt.register_step(function() tpt.set_property("type","none","sing") end)