self.body:setX(200) doesn't work but
self.body:setPosition(200,100) does...
Here's the error:
Classes/Hero.lua:30: attempt to call method 'setX' (a nil value)
stack traceback:
Classes/Hero.lua:30: in function 'init'
[string "property.lua"]:31: in function 'new'
Scenes/Level 1.lua:74: in function 'init'
[string "property.lua"]:31: in function 'new'
Classes/scenemanager.lua:264: in function 'changeScene'
main.lua:10: in main chunk
Just curious why?
Thanks!
Comments
Box2D does not have one, because all the box2d methods are plain copy of original Box2d API without modifications
http://www.box2d.org/manual.html
That of course does not stop you to define your own abstraction methods
Likes: Tom2012