Weird GM 8.0 Bug

Posted by Powerful Kyurem on June 10, 2014, 2:05 a.m.

Ok, so I'm building a time travel game. That involves a lot of weird stuff I won't go into and get to the point.

http://pastebin.com/jXjbYUbn

For some reason, this chain of objects, hits the wall, and then /all/ of them reverse rather than just the last one. It makes no sense. Any clue? Are my IDs messed up?

I apologize for the small blog, but this is a make or break it kind of thing for the project. Without it, it will all break.

Comments

Powerful Kyurem 10 years, 6 months ago

Hmm. I see your point. :/ In that case, I'm going to just have to put the game to the side for a while, or make really tiny levels. Thanks for the help, though.

(If anyone owns a massive supercomputer and wants to play with it, feel free to ask for the code.)

Alert Games 10 years, 6 months ago

Its true that you dont want to store a 'bajillion' objects. Arrays are smarter, because you're not storing all of the excess properties that Game Maker has. (If it wasn't Game Maker theeeeeen, might be ok, but still use array anyway.)

I dont think this is a GM bug, but it is impossible to tell with the code given because that logic is ok, even though it could be improved a bit.

Powerful Kyurem 10 years, 6 months ago

Actually, the bug is simple. Since 'future' wasn't created and undeclared, it set the object with id 0. By pure chance, that happens to be the original rock, which then sends the change through the chain. XD