Jump to content

  • Log In with Google      Sign In   
  • Create Account


Rakso

Member Since 19 Jul 2011
Offline Last Active May 22 2013 01:45 AM
-----

Topics I've Started

What to learn about C#?

22 November 2011 - 05:12 AM

Im actualy going to give up Java and go C# and i want to know alll the things i should know about the language.. like Asp.net i think is something about c# and .net what is the things besides the language i should know about?

Thanks

Game developement for android?

18 September 2011 - 05:07 AM

Hello guys!

Im starting a new project and im thinking i want it to be a game for android.. But i never made any games to android before..
Is there some guide or tutorial on the webs that i can read?
And is there some tools i need for this?

Just some quick questions :)
Thanks!

Collisions in C++

27 August 2011 - 06:02 AM

Hello guys!

I basicaly made this game



And if you watch the video you can see that the player can move exactly everywere on the map he wants.. But now i want to make code so for example he can only walk on the roads not out of the roads..

And i am just loading and image now as level but is there some other way i could make theese collisions without a collision map??
Or how would you do it?

Thanks!

Problem making Animaiton for player

23 August 2011 - 09:04 AM

Hello people!

Right now when i start my game am making in C++ i walk left right up or down.. But the character just slides doesn't look like he's walking.. And i have all the pictures already loaded into my game and they are working.. But i don't know how i would solve it.. Thing i can't figure out is how to make the picture change when u hold the button..

This is in allegro by the way..

Here is my code for the drawing player:
void Player::Draw(BITMAP *Buffer){
	draw_sprite(Buffer, Oskar[picNumber], x, y);
}

Oskar[] is the name of the Array with all the pictures..

Here is what changes the picture for the character when u press the buttons:
void Player::Controls(){

	if(key[KEY_RIGHT]){
		velocityX = speed;
		picNumber = 6;
	}

	else if(key [KEY_LEFT]){
		velocityX = -speed;
		picNumber = 9;
	}

	else{
		velocityX = 0;
	}

	if(key [KEY_UP]){
		velocityY = -speed;
		picNumber = 3;
	}
	else if(key [KEY_DOWN]){
		velocityY = speed;
		picNumber = 0;
	}
	else{
		velocityY = 0;
	}

	x += velocityX;
	y += velocityY;
}

Its all about the variable i created picNumber.. All pictures i have is in an Array and the picNumber is represents what picture to be drawn..
Would be nice to get some help on this.. I've been thinking all day about this..

Source mods will teach me?

15 August 2011 - 12:39 PM

Quick question here..

I found on steam that you can make your own customized Half-Life2 for example with the Source SDK and with this make ur own small modifications of the game.. Is this something i could use to learn C++?

Thanks!

PARTNERS