Search found 1 match
- Mon Feb 20, 2023 9:03 pm
- Forum: General
- Topic: I need help on making and using classes.
- Replies: 8
- Views: 3553
Re: I need help on making and using classes.
So to use classes you first need to make a class: table = {} table.value = 10 Then to use this class you will want to use a function like this: function table:function() table.value = 20 end Then after making the function you will need to call the function from a callback function i.e. love.update, ...