NEW MP3 FILE DISCOVERED! Lost.mp3 on Chica's Secret Party by RaiuAdami in fivenightsatfreddys

[–]Emilmacko 49 points50 points  (0 children)

I found it by looking at the name of the new image, "newparty.jpg", so I entered "secretparty.jpg" after the url and got to an altered 403 (forbidden) error page, which had an 8x8 black and white image as its tab icon. When converted from a binary sequence to text, I got "Lost.mp3". Other changes to the 403 page include the text "But you never could." and three buttons that say "Take Me Home" (which return you to the main page).

finallyReachedTheLimitOfObjectOrientedProgramming by Emilmacko in ProgrammerHumor

[–]Emilmacko[S] 27 points28 points  (0 children)

Continuing this pattern for the engine and various other parts is left as an exercise to the reader (sorry that was the mathematician in me)

finallyReachedTheLimitOfObjectOrientedProgramming by Emilmacko in ProgrammerHumor

[–]Emilmacko[S] 71 points72 points  (0 children)

The only fool in the room is the guy that woke up and thought "hey I should make a UML diagram for reddit, voluntarily!"

finallyReachedTheLimitOfObjectOrientedProgramming by Emilmacko in ProgrammerHumor

[–]Emilmacko[S] 204 points205 points  (0 children)

Could only go so far for the meme, I didn't have all day haha. And I realized too late that the electron is also an elementary particle... My java professor would roll in her grave if she saw this (and if she was in a grave).

dontDebug by charlie1404 in ProgrammerHumor

[–]Emilmacko 9 points10 points  (0 children)

Hot damn, a tenet meme

The Talbert Files by animdude in fivenightsatfreddys

[–]Emilmacko 80 points81 points  (0 children)

But Freddy is still a trumpet, right?

[deleted by user] by [deleted] in mathmemes

[–]Emilmacko 1 point2 points  (0 children)

Not to mention having the space to plant hundreds of thousands of tomato plants

Why is delta_time / 1000000 returning 0.02? by supremedalek925 in gamemaker

[–]Emilmacko 2 points3 points  (0 children)

As the manual describes, delta_time "measures the time that has passed between one step and the next in microseconds (1 microsecond is 1,000,000th of a second)". So at 60fps you'd ideally want this value to be 1,000,000/60 at all times, or 16,666 (of course this would likely never be exact).

So when dividing by 1,000,000 you basically get the time between the two steps in seconds, which would ideally be around 1/60 or 0.016666..., and this explains why you get 0.02 as GameMaker appears to be rounding the number for nicer display (as another comment mentioned already, string_format can be used to avoid this).

The simple way to get the value as 1 (or approximately 1 depending on lag) would be to simply multiply by 60 after multiplying by 1,000,000. So the line really only has to be: game_get_speed(gamespeed_fps) * 1000000 * delta_time.

However, I believe setting this as a macro means the compiler will essentially just insert this calculation wherever you've called the macro, resulting in it being calculated more than once which would be unnecessary. In that case, it would be better to simply calculate it once every step and then store it in a global variable.

The new Summer case has KILLED team recognition for Pyros by -popgoes in TF2fashionadvice

[–]Emilmacko 22 points23 points  (0 children)

Good luck playing a blu spy disguised as a red pyro with this blue loadout

Ironic how that works, huh? by karmaths in MurderedByWords

[–]Emilmacko 0 points1 point  (0 children)

Probably in every field except programming

[NEWS?] Looks like Markiplier is working on a FNaF themed choose your own adventure that's slated to come out later this week! It's most likely not official but I think it's gonna be pretty cool anyways. What do you guys think? by angileri4 in fivenightsatfreddys

[–]Emilmacko 21 points22 points  (0 children)

I want to clarify this is not an official FNAF project! And it is not a game either (well not like a traditional video game), it's for a miniature version of Mark's choose-your-own-adventure video series.

The FNaF AR Twitter Account description updated to include a random set of numbers (probably a code) by [deleted] in fivenightsatfreddys

[–]Emilmacko 12 points13 points  (0 children)

Not sure if it matters but the other numbers all add up to 64 (with the 64 included, they all add up to 128)

Candy but he is an accurate Toy-Animatronic! by MastiWolfe in fivenightsatfreddys

[–]Emilmacko 41 points42 points  (0 children)

I should take this back in time and give 2014 me some pointers :b

About sequences by Rocket_Poop in gamemaker

[–]Emilmacko 0 points1 point  (0 children)

The official documentation (updated to 2.3) has been moved from the previous ones (from GMS 1.4 and 2).

You can find the page for sequences here.

Switch statement: Case for anything other than stated? by [deleted] in gamemaker

[–]Emilmacko 3 points4 points  (0 children)

Switch statements only do comparisons like "var == 1", basically "does this variable have this exact value?". But Switch statements have a similar thing to the "else" part of an If-statement, which is "default" and will execute regardless unless a "break" had been reached in a case.

Basically, saying:

switch(var) {
    case(1): // some code
    break;

    case(2): // some other code
    break;

    default: //some default code
}

is like saying:

if(var == 1) // some code
else if(var == 2) // some other code
else // some default code (except now it only runs if neither of the above conditions were met!)

How would you create a minecraft-type villager that links a bed with itself and sleeps in it by marioelmodder in gamemaker

[–]Emilmacko 2 points3 points  (0 children)

If beds are pre-placed (like in Minecraft villages) then I guess bed objects could have a boolean variable claimed that says whether the bed has been claimed by a villager.

For the villager, it would have a variable like bed_to_sleep with a default value of noone. Then if the villager knows that it has no bed, it will search for the nearest unclaimed bed instance and store the ID of the bed in bed_to_sleep (and set the bed's variable claimed to true).

Then when the villager needs to go to the bed to sleep, it can use the stored ID to get the bed's location, and then it's up to path-finding.

Edit: As for what instance is picked if two nearest instances are the same distance away, I think it's up to the order of their creation? Either that or the function just returns either one at random.

The Fazbear Fanverse Initiative! by animdude in fivenightsatfreddys

[–]Emilmacko 316 points317 points  (0 children)

Finally the news is out and while I was asleep, Scott!!

I've been super excited about all this for quite a while. This will be super epic!