Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

879929 Posts in 33013 Topics- by 24384 Members - Latest Member: sassah

May 25, 2013, 09:05:08 AM
  Show Posts
Pages: [1] 2 3 ... 18
1  Developer / DevLogs / Re: Small Castelvania on: May 24, 2013, 06:30:07 AM
Looks cool.
2  Developer / Technical / Re: Collision problem [c++] on: May 03, 2013, 06:36:43 AM
Here is the collision fuction function, it's really simple.
Code:
bool collision(SDL_Rect* object, SDL_Rect* object1)
    {
         if(object->y >= object1->y + object1->h)
         return 0;
         if(object->x >= object1->x + object1->w)
         return 0;
         if(object->y + object->h <= object1->y)
         return 0;
         if(object->x + object->w <= object1->x)
         return 0;
        return 1;
    }

Also, thanks for the help, Fallsburg.
3  Developer / Technical / Collision problem [c++] on: May 02, 2013, 11:49:50 AM
Hi!
So I'm trying to make collision between my bullets and the enemies. I have 20 enemies and 20 bullets so I wrote a loop for it. Like this:
Code:
// runnersR and bulletsR are hitboxes
         for(int i = 0; i < 20; i++)
         {
             if(runners[i].hp == 0)
             {
                 runners[i].die();
             }
             if(collision(&runnersR[i],&bulletsR[i]))
             {
                 bullets[i].yC = 6000;
                 runners[i].hp = 0;
                 cout << "Enemy hit" << endl;
             }
         }

For some reason it only works from different angles. Some only die when the bullet is going downwards and some when it's going left.

Thanks for any help.
4  Community / Competitions / Re: Ludum Dare 26 on: April 22, 2013, 06:16:38 AM
If the theme is potato I will lose all respect for the LD community.
5  Player / Games / Re: Ouya - New Game Console? on: April 14, 2013, 05:00:03 AM
im a profesional opinion da ouya is dum

I'm a professional quote maker.

In this moment I am indie, not because of any phony publishers but because I am enlightened by Jonathan Blow.

Eh?
6  Developer / Technical / Re: How do I do input from the user in python? on: April 09, 2013, 10:50:52 AM
Fixed it.
7  Developer / Technical / Re: How do I do input from the user in python? on: April 09, 2013, 10:36:14 AM
How would I make it so if I say a number and it changes the an integer?
8  Developer / Technical / Re: Too Scared to compile and play my file on: April 09, 2013, 10:26:31 AM
One night I re-wrote a two player game where you shot each other. When it was done(the shooting, the killing, the re-spawning) I ran it. Oh dear god why. I got so many errors when I fixed them it just didn't run; it kept crashing when I ran it. That was a lost Friday night.
9  Developer / Technical / Re: How do I do input from the user in python? on: April 09, 2013, 09:54:35 AM
Cool, thank you!
10  Developer / Technical / How do I do input from the user in python? on: April 09, 2013, 09:47:18 AM
I'm trying to learn some python, you know, something else then c++ under my belt. I've got somethings down in python like functions, print and the other basic things but how do I so the user can enter something and have it affect the outcome? 

Thanks for any help!
11  Developer / Technical / Re: Import maps in SFML on: April 09, 2013, 09:14:10 AM
Hi,
I have a very simple question! I use SFML 1.6 and the Tiled Map Editor for my jump and run game! I have created a few maps and now I want to import them! But how can I do this? And in what folder I can save the maps? Can I save them in /levels? And I use Visual C++ 2008! Thanks for help!

Cheers!
-M

You don't have to shout every sentence! Tiled saves a XML file(if I remember correctly) but you can export to different files(txt, lua and more, they all become arrays)but there is no "sfml" file.
12  Player / Games / Re: Ouya - New Game Console? on: March 31, 2013, 01:44:16 PM
Are there any cool games that are not just causal phone games?
http://www.youtube.com/watch?v=JV1nidrZhsM

Best game ever, 10/10 GOTY.
13  Player / Games / Re: Ouya - New Game Console? on: March 31, 2013, 01:21:06 PM
Are there any cool games that are not just causal phone games?
14  Developer / Technical / Re: What are you programming RIGHT NOW? on: March 29, 2013, 11:26:24 AM
Testing out sdlbasic because I want to try out something different then c++ just for the fun.
15  Community / Competitions / Re: TIGS Compo Idea Pool - Thread 2 on: March 28, 2013, 11:21:22 AM
Yes, that would be pretty cool.
Pages: [1] 2 3 ... 18
Theme orange-lt created by panic