#Can't understand OOP
1 messages · Page 1 of 1 (latest)
whats OOP
Object Oriented Programming
kinda shit
good for early gen programming
dont use it if you dont understand it
i recommend just running with procedural
Ive seen people commonly use it for Character Selection stuff
or something
its only useful for understanding structure in a game
past that, procedural works fine
each object is assigned with dependant data & methods, think of it as ‘behavior’
you control those objects with a module, done independantly within each object itself by ‘inheriting’ methods from a ‘class’
A npc would be an easy example
but why thats what i wanna know
npc could be a super class
zombie would be a inheriting class
usually for redundancy but overall it adds more overhead to your objects and their behavior
or instances
cant rly do much with that
theres odd behavior in roblox instances
no difference
its not better
by any means
major misconception
its only a ‘way’ that people prefer
to write code
ooh
It's important to note it's not like a different language. It's just a different way of structuring your code. Still luau.
pretty sure its more like preference since i never really found any difference when i was making my own character selection vs one i found online that was using OOP
so basically its useless
u dont need to use oop
its just a thing to do
am i right?
It's not required no
okay ty
oop is a good concept to learn if youre advancing into codebases
lots of people in rovlox still use OOP
Just depends on you
?
why? may i ask
but whu ðŸ˜
you can get confused with all that metatable magic
its actually really simple, certainly not magic
i know buddy
im not ur buddy
dam
Cause its what you would usually see in a roblox studio video
@eternal locust just got pressed
whats it in
?
but whats the use of oop
namecall aint a metamethod you can use in luau 🥀
wdym whats it in
what language is it in
luau???
its 5 am so i might get super confused at myself aswell but i think this is an example of oop
just structuring code
oh so it's just a way to structure code
? explain what youre talking about because youre yammering nonsense about a metamethod that hasnt been accessible in years
well I mean Its still accessible if youre exploiting
yup