[Yandere Simulator] if else if else if else if else if else if else

46
Jump in the discussion.

No email address required.

what is wrong with this

Jump in the discussion.

No email address required.

I won't bore you with the details. Imagine an r-slur using a gun as a fidget spinner. You start to ask lots of questions like, "Who let him have a gun?" "Maybe I should run away." Something is very wrong. There are so many red flags you realize he's not teachable, or even worth 10 seconds of your time. Also he claims to be Special Forces (i.e. a full time game developer).

Jump in the discussion.

No email address required.

I thought this was @bbbb at first lmao

Jump in the discussion.

No email address required.

Shoul I be offended haha

Jump in the discussion.

No email address required.

Thanks for the laugh, now piss off.

Jump in the discussion.

No email address required.

Are you fricking r-slurred? Obviously someone with your lack of intelligence would be too afraid to even approach me, let alone ask me any questions. And for your information, I am Special Forces. So you can go frick yourself, you little piece of shit.

Jump in the discussion.

No email address required.

I'd like to experience your special forces:marseyshy2::marseyblush:

Jump in the discussion.

No email address required.

Your special forces aren't anything to write home about.

Jump in the discussion.

No email address required.

Maybe you could teach me? I wouldn't mind a live demonstration. :marseycapyshy::horny:

Jump in the discussion.

No email address required.

What makes you think I'm interested in teaching you anything? You couldn't even handle a live demonstration.

Jump in the discussion.

No email address required.

The ifelif isn't the bad part. It's the fact his game logic is setup in a way where he needs to use so many ifelif. A ton of this can optimized or converted to enums/flags to simplify the logic(particularly note how the three components weapon, blood, insanity have a hierarchy). Furthermore the updateLabel function looks and probably is r-slurred.

If you truly need to use a chain of ifelifs, then it's not bad to use them. But the question is whether you truly need to use them in the first place.

Jump in the discussion.

No email address required.

note this code gets executed EVERY SINGLE frame

Jump in the discussion.

No email address required.

:#marseybegonethot:

Dios mio you're right

Jump in the discussion.

No email address required.

tbh i googled what enums were and i didnt really understand the benefit but you sound smart so i will believe you

Jump in the discussion.

No email address required.

Integer comparison is faster than string comparison.

Jump in the discussion.

No email address required.

oh ok that does make sense, thank you for your patience :marseyautism:

Jump in the discussion.

No email address required.

okay. So it's like you have a coin on you. you take the coin and flip it to make every single decision ever in your system. So you go, man is white or black, if he is black does man have big nose or small nose, if man has small nose does he have big eyes or small if, if he has small eyes, does he like music or does he not like music.

You program your entire game using this two options nested within each other logic.

As you can probably figure out for your entire game code to be nested ifs is downright r-slurred and we have like a dozen better ways to write down good code.

This is why the whole thing is downright r-slurred beyond comprehension. Most modern day code would be a sort of network where everything is not connect by a single if's cascade.

BTW I am not a coder I just studied the basics of coding in 11th and 12th grade.

Jump in the discussion.

No email address required.

literally everything

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.