Search found 4373 matches

by albinopapa
March 23rd, 2013, 4:40 am
Forum: Everything
Topic: Help making a targeting system.
Replies: 12
Views: 4890

Re: Help making a targeting system.

Not empty just not set. Like instead of being initialized as 0, NULL or another value, on my computer it always inits to a very low negative number like -800000. So any 'if' statements that compare a number being larger or equal to 0 it will skip even though these have been the code blocks that you ...
by albinopapa
March 22nd, 2013, 9:39 pm
Forum: Everything
Topic: Help making a targeting system.
Replies: 12
Views: 4890

Re: Help making a targeting system.

From what I can tell std::vector is for dynamic memory allocation for arrays that will allow the array to grow and shrink. Trying to run your code produces errors because the variables aren't getting assigned values before using them. Even with using vector the way you are you would still need to pu...
by albinopapa
March 12th, 2013, 6:59 am
Forum: Everything
Topic: I love these video tutorials
Replies: 2
Views: 2002

Re: I love these video tutorials

We all want us some Chili...hehe. I wonder if he is working on the platformer and working out how he is going to turn it in to a lesson. In most of his Intermediate videos he seems wishy-washy. On one hand he seemed to get frustrated about being asked about the framework and after those videos he sa...
by albinopapa
March 12th, 2013, 6:53 am
Forum: Everything
Topic: Help with constructors.
Replies: 8
Views: 3485

Re: Help with constructors.

If you are referring to the Building class constructor, the syntax in the .cpp file looks correct. The compiler seems to be only complaining about the missing types such as KeyedSurface. Assuming the class or struct KeyedSurface has been created elsewhere fixing the first error will sometimes fix se...
by albinopapa
March 5th, 2013, 5:41 am
Forum: Everything
Topic: If I Was... *GAME*
Replies: 15
Views: 7291

Re: If I Was... *GAME*

chili would never have to work on anything else besides tutorials for us.

If I were the perfect program...
by albinopapa
March 5th, 2013, 4:26 am
Forum: Everything
Topic: Finite State Machines
Replies: 5
Views: 2857

Re: Finite State Machines

Thanks for posting, it seems to be a pretty neat template for an FSM. This seems to iterate through a text string to match to a list of states that are stored using the vector class to store the different states and be able to add states dynamically. It has five functions. GetState: which retrieves ...
by albinopapa
March 4th, 2013, 11:08 pm
Forum: Everything
Topic: Removing a drawn pixel
Replies: 5
Views: 2756

Re: Removing a drawn pixel

There are two states for the keys pressed and released so maybe you could use an if statement that;

Code: Select all

if(SpaceIsPressed)
{
     PutPixel (?,?,?,?,?);
}
That way the PutPixel line will be skipped if the spacebar is not pressed.
by albinopapa
March 1st, 2013, 9:17 am
Forum: Everything
Topic: [UPDATE] Crap Out!! Dice Game. MP3 SUPPORT!! [v1.1.7]
Replies: 24
Views: 12201

Re: Crap Out!! My new Dice Game. [v1.0.6]

I suppose that is how I play as well, I try to give myself the most points with the most dice left to roll again to give myself a better chance of getting 3 or 4 of a kind. Played 3 times when I first downloaded the program. Lost the first one due to learning curve, then won the next two from good r...
by albinopapa
March 1st, 2013, 6:26 am
Forum: Everything
Topic: Finite State Machines
Replies: 5
Views: 2857

Re: Finite State Machines

Oh, btw, in an RPG I think you have to decide things such as "attack points" "defense points" "armor defense points" "weapon attack points" and possibility of making a critical hit using a formula as simple as int damage; int baseDef; //Players base defense points int armorDef; //Defense points of t...
by albinopapa
March 1st, 2013, 6:03 am
Forum: Everything
Topic: Finite State Machines
Replies: 5
Views: 2857

Re: Finite State Machines

I think it depends on the type of game you are programming as far as HP or health depletion. There was an article I read that used Quake as an example. FSM was used for AI implementation such as spawning enemies and ammo as it was fired, the life cycle of the rocket for example and if in line of sig...