The Strangest of Glitches

January 25, 2011 at 6:49 pm 3 comments

Hi all,
Greg has been working dilligently on some beautiful landscapes and other bits and pieces for CC2.

For a while though I thought there were glitches in the way he was rendering the images. Whenever I checked for collisions between the sun and one of his images, the game would lock up / crash. No error message from Game Maker.

But that theory soon vanished as I found that other objects could collide with the images just fine, and that while many sprites did collide with the sun ok, some larger ones, seemingly all with some form of transparency in them, would just lock up the game. Even changing masks in the sun’s object made no difference.

What was even stranger was that at one point, the game would lock up only for a fraction of a second, and then re-appear with a large number of steps processed. So, if Craig was running right at the time of lock up, half a second later the screen would go back into motion, and Craig would be on the other side of the map!

I trial-and-errored all the sections of code in the sun, and none seemed to be the culprit. The only commonality I could find was that it would lock up if the sun collided with an object containing one of many sprites that seemed to affect it (the sun had to check for a collision via an event or via place_meeting for it to lock up – it made no difference what the following action was).

So, how did I overcome this? I created a dummy object to follow the sun around and report to it when [i]it[/i] collided with something. So instead of the sun checking for a collision, it checked if the mask had a collision. And it works fine! But I can’t just continue on without looking back and wondering.. seriously, what the hell is going on?



Entry filed under: Caveman Craig 2.

Sneak Peek at Caveman Craig 2 TEKA TEKI now available for Android!

3 Comments Add your own

  • 1. QWERT ( Yubs)  |  January 26, 2011 at 1:27 pm

    Man I’m so glad I bookmarked this place! So much progress since I last was here!!! Also now that it is playable.. I can’t wait!!!! ^_^ But I must… Or else glitches like this will be in the main game.

    Hope it gets finished THIS YEAR…

  • 2. rhysandrews  |  January 26, 2011 at 11:26 pm

    Very glad you bookmarked us 🙂
    Won’t be long now and we can more or less promise a release mid this year.

  • 3. Audioworm  |  January 30, 2011 at 10:48 am

    Ah, I am excited. I can hardly wait for a demo release. I expect big things from you, Andrews.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Get Caveman Craig 2 Here!

Parabox is..

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 17 other followers

From our Twitter..

%d bloggers like this: