Jump to content


Pie Person!

Member Since 13 May 2006
Offline Last Active May 19 2014 02:09 PM

Posts I've Made

In Topic: Thanks for ++ and --

15 December 2012 - 02:34 AM

Too bad none of you seem to understand that an increment or decrement's local evaluation depends on whether you place it before or after a variable or pointer indentifier.

#include "stdio.h"

int main()
{
	int value = 5;

	printf("value %i\n", value);
	printf("++value %i\n", ++value);
	printf("value %i\n", value);
	printf("value++ %i\n", value++);
	printf("value %i\n", value);

	int quantity = 0;

	while (--value)
	{
		++quantity;
	}

	printf("quantity with while (--identifier) %i\n", quantity);

	value = 7;
	quantity = 0;

	while (value--)
	{
		++quantity;
	}

	printf("quantity with while (identifier--) %i\n", quantity);

	getchar();
	return 0;
}

So... you probably don't know how to read from or write to byte streams correctly, or you probably create erroraneous loops every now and then.

In Topic: CrySet - We publish your games! And pay you!

02 September 2011 - 06:11 PM

That's great, but what exactly? A website like this (I believe) needs a community, and the only option is forums..


It needs a community indeed, but a message board is not the only option. Hmm... I feel like doing some web design. I want to make an example for you. :smile:

In Topic: CrySet - We publish your games! And pay you!

02 September 2011 - 05:21 PM

I feel very sorry to say this, but I agree with Jobo completely. The forum would be more than a disaster. Rather than a message board, I encourage you to think of something else. Anything that harnesses the real shape of your website would be an excellent start!

In Topic: Optimizing Simple 3d Projection of Points

01 September 2011 - 04:36 AM

Who does this anymore? Just use Game Maker's 3D support (it will be a lot faster)!

In Topic: Creating Illusion of a model using sprites?

31 August 2011 - 10:48 PM

Try this:

sprite_index = floor(((((facing - point_direction(Camera.x, Camera.y, x, y)) + 540) mod 360) - 180) * 0.25);

I haven't tested it, but it should work just fine.