ah i figured it out. here's an example of what i did (just for reference heh) :
bool S_IS_DOWN = false;
void GetInput()
{
if (key[KEY_S] & !S_IS_DOWN)
{
Type: Posts; User: Ion Blade
ah i figured it out. here's an example of what i did (just for reference heh) :
bool S_IS_DOWN = false;
void GetInput()
{
if (key[KEY_S] & !S_IS_DOWN)
{
Hi..
my problem is with keyboard input using allegro. what i'm trying to do is fairly simple...i have a Status indicator box that you can toggle on and off. right now i have it set up so that...
a good place to put it would be right after a hit/attack occurs, and it says "the monster dealt x damage". if the player dies, do your "you are dead" message and break out of the loop, otherwise keep...
ahhh
i thought at one point i wasn't assiging a size to the commands, and couldn't figure out how to go about doing it then forgot it lol.
anyway that worked, thanks
Tried that, compiler just gave an error. The problem is an illegal operation, invalid page fault.
I have a program that wants to read in 30 strings from a text file and store each string in an element of an array.
The array is declared as this...
char *command[MAX_COMMANDS]; //commands...
whoops, didn't log in right
char templine[72];
using win98, and dev-c++ v4.9.7.5 compiling with mingw32
Doesn't work.
here's what i did:
while(!DFile.eof())
{
DFile.getline(templine,1);
cout<<templine;
cout<<endl;
woops, didn't log in correctly :rolleyes:
I have started trying to learn Allegro, so i'm quite new to it, and it is really my first experience with an API.
What i want to do is similar to this (pseudo-code) :
while (!exit)
{
...
It's hard for me to explain it... i'll try my best
In my connect four game, i have a char (defined char board [8] [7]) to keep all the values of the board.
Each space is either equal to O for...
I have no idea if this is explained in a tutorial, but is it possible to make each element of an array part of a struct?
Like:
char myChar [10];
myChar [6] = 'A';
myChar [6].isChanged =...
I noticed a bug in the code that would allow 4 players to play in iron man mode if you selected 4 player mode and then switched to iron man. I fixed it, and here is the latest version of the program...
Thanks for the replies :D :)
Kliner, ai would be pretty cool, but i don't have the will to work on it because it would seem daunting to me. you, or anyone however can try and implement ai into my...
Hi..
this is my first "real" game in c++. It is connect four, only beefed up with features and options. At this stage, only a couple of the options work, and only a few modes work correctly...
I am making a connect four game in console mode.
I have just written the function that determines what to do when the current player drops their piece in a row.
Here's what it is:
void...
Yay, it worked...but now when i try to run the program, it says "alleg40.dll not found".... ? :confused:
oh never mind, i got it.... i was wondering what that new Dll folder was all about. Thanks
problem is still there.
Hey.
I am using DevC++ 4.01 and i recently downloaded the allegro 4.0 self install exe from their site...it is all installed and everything, but here is my problem.
#include <allegro.h>
...
thanks for all the replies :)
hi.
What i am trying to do is make a menu for a game (in console) that looks like this:
GAME TITLE BLAHBLAH
+ Play Game
Options
Exit
Why not just...
#include <iostream.h>
#include <fstream.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
Maybe you have to declare strLine like this:
char strLine[10];
and then it may work. I dunno if cin.getline likes the 'string' declaration...
i have an hd that stores exponential amounts beyond yours, because MY dad works for aliens with superior technology. OOPS, I HAVE TO RU... *bang*