So what am I doing wrong then?!? !?!?!
go.property("camera", vmath.vector3(0, 0, 0))
function update(self, dt)
self.camera = go.get_position("levelselect:/camera")
if self.camera.y ~= 0 then
self.scrolling = true
self.offsetter = self.camera.y
elseif self.scrolling == true then
self.scrolling = false
go.animate(go.get_id(), self.offsetter, go.PLAYBACK_ONCE_FORWARD, 0, go.EASING_LINEAR, 2, 0)
self.selfpos = go.get_position()
self.selfpos.y = self.selfpos.y + self.offsetter
(nb. i know i still have to make it lerping and not just set position, but right now i get a message "doesnt' have a property called offsetter")
EDIT: Okay, got it: it is not the GO but the script that has the property, so instead of using "go.get_id()" in the animate part, i should use "#". What a pain in the ass. I've spent hours on this problem. It's crazy how quickly i forgot everything I learnt just a few months ago.