Search found 53 matches

by KuramaYoko10
Mon Jan 12, 2009 5:09 am
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1595

Re: What command do you use, to go to another variable if...?

Ah... I see, I did real quick now this little program so you can compare with yours!! I compiled and it works with only one thing happening... if the user types a char it will keep looping through the phrase "You have typed an invalid number" ... I dont have time now to check on that but I...
by KuramaYoko10
Sun Jan 11, 2009 5:27 pm
Forum: Programming Discussion
Topic: What command do you use, to go to another variable if...?
Replies: 14
Views: 1595

Re: What command do you use, to go to another variable if...?

Hey dude, the solution is simpler than that I guess... Instead of trying to compare an int to a char or string, you just have to add an else at the end of everything, that way it will output the error message for any characters that does not fit the conditions before. Like this: if(gorex > 1 &&a...
by KuramaYoko10
Wed Jan 07, 2009 12:19 pm
Forum: Programming Discussion
Topic: Help with layers xD
Replies: 6
Views: 685

Re: Help with layers xD

Hmmm... I know what you mean I guess... I have tried before loading a pink background between each layer and then setting SDL to make that pink color transparent, and it worked, but my problem was that it was taking a lot of memory i guess since when I did that the game would run as slow as a snail!...
by KuramaYoko10
Wed Jan 07, 2009 10:29 am
Forum: Programming Discussion
Topic: Help with layers xD
Replies: 6
Views: 685

Re: Help with layers xD

Yes.... I mean, with all I got now I can load the map i created on my level editor nicely, but I want to do it different... I want to load the stuff in different layers so I could get some different effects! I would render the background and the non-collideable stuff in one layer, then the floor and...
by KuramaYoko10
Sat Jan 03, 2009 10:15 am
Forum: Programming Discussion
Topic: Help with layers xD
Replies: 6
Views: 685

Help with layers xD

Hey there guys, I am back here needing help =D I am doing this "Ninja game" similar to Mario but with my ninja character, and I am having problems when loading the map I created in my level editor in different layers. **The game is in C and SDL. In my level editor, I create the map and sav...
by KuramaYoko10
Mon Nov 03, 2008 5:10 pm
Forum: Programming Discussion
Topic: Hello
Replies: 5
Views: 927

Re: Hello

Hi there, I am just a newbie in programming but a book I can recommend you xD ... I started programming (1 year ago), kinda lost, on internet then I found this book which is awesome... I have got some on the library but none of them could beat this one... it is a "Sams teach yourself" book...
by KuramaYoko10
Mon Nov 03, 2008 8:49 am
Forum: Programming Discussion
Topic: Level Editor in SDL
Replies: 2
Views: 732

Re: Level Editor in SDL

Hey M_D_K thanks for the reply... and now I have fixed it xD I have set a struct for the Tile, and a different way of coding the tiles and the returns: struct Tile { int x; int y; int w; int h; int code; }tileClips[TILE_SHEET_T]; void clipTiles() { clips[0].x = TILE_WIDTH * 0; clips[0].y = 0; clips[...
by KuramaYoko10
Sat Nov 01, 2008 2:13 pm
Forum: Programming Discussion
Topic: Level Editor in SDL
Replies: 2
Views: 732

Level Editor in SDL

Hey there, I am new here on the forum but an old watcher of the "Adventures in Game Development", and a big fan of the game and team xD. Well, I am making a "mario type" of game, and I am needing help with the level editor. I followed the lazyfoo's tutorial, and I have done some ...