Search found 41 matches
- Tue May 26, 2020 11:52 pm
- Forum: Support and Development
- Topic: How to use "self" properly?
- Replies: 6
- Views: 4336
Re: How to use "self" properly?
At the point you're referencing body in the table, self doesn't yet have the meaning you want. You're probably going to have to do it the way you did in the first example. At least, that's what I've been doing. function h01:Create() local this = { body = love.physics.newBody(runWorld, 350, 100, &quo...