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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - KasHKoW

Pages: 1 2 [3]
31
Graphics / Making a sprite move randomly accross screen
« on: June 26, 2011, 03:05:11 am »
Quote
By the way, don't implement such algorithms on your own. Reuse existing libraries such as Boost.Graph


Why shouldn't you? I know very well that rewriting code that's already out there is bad, but wouldn't you learn a great deal from this?

Reading this, I actually was inspired to do my own pac-man like game. As I thought designing the enemies would really improve my programming skills(or problem solving).

32
SFML projects / CosmoScroll - space shooter game
« on: June 26, 2011, 02:37:26 am »
Very, Very cool. Thanks for the response.

I'm also going to check out those resources.

33
Graphics / Programs used to make 2d Game images? Using gimp...
« on: June 26, 2011, 02:34:54 am »
Thanks for the response. I tried a couple days ago on irc, but i usually code late at night so no one was in. I tried yesterday and got that exact same answer.
Yours being a little more comprehensive!

34
Graphics / Problems loading images when I split program into modules
« on: June 26, 2011, 02:31:54 am »
the file is home/ken/Documents/SFML/gameImages/Pong/b1.jpg

or something of that nature...

I'm positive that the actual image is in that file absolute path. As when I consolidate the code into one large file, it works perfectly.

Also, I don't get what you're fully saying. Should the file be in the folder that the game binary is in?

35
Graphics / When I load an image, My moving sprite freezes.
« on: June 25, 2011, 08:45:16 am »
I have a ball that moves and has boundaries that it can't go past. I use to use a sf::Shape that worked perfectly with my algorithms physics?lol and it was very basic and generic.

Now this image within a sprite has come a long and it's freezing after a while that it runs.  When it hits the boundary, it will freeze there. I think that possibly It caught it too late, and doesn't meet the requirements to move again?

I'm not sure why it does this. Again, it works perfectly fine with a shape. Just when I use the sprite, is there some limitations and precautions I should take when using the sprite with images loaded in it. Also the image is a jpg, which I'm not just finding out is a bad format.

36
Graphics / Programs used to make 2d Game images? Using gimp...
« on: June 25, 2011, 08:36:50 am »
Hey, I haven't gotten to this step in my game yet, but I plan to make all original graphics + sounds.

I've been using gimp and I've noticed that every time I try to make a sprite, It has the white background that I used to make it. I want the image just to be the object that I made not include the background around it. I've tried drawing on transparent layers and erasing this... but it doesn't work.

Anyone know the fix... What's going on?

Also, While I'm on this subject, what's some good programs that people use for 2d games to make the graphics.

And possibly tutorials, bits of useful information or other things relevant to the topic available over the web?

37
Graphics / Problems loading images when I split program into modules
« on: June 25, 2011, 08:31:43 am »
I have a program that I split into two modules with a header.

I'm new to the whole modules/headers thing. I started to use it because my code is now > 300 lines and daunting to look at. I suspect it to get to > 800 lines, this helps in the long run.

Anyhow, when it works, it's all consolidated into one source file. When I give a header... I put all Class declarations in the header file. I include SFML/Graphics.hpp and any #defines I have for the program. The first source module has all the definitions for the class declarations, while the second has all the main function. It compiles but it spits out an error while trying to load an Image. What's bizarre about this error is that the name of the image is a directory + image.

Anyone know why this is happening?


Failed to load image "gameImages/Pong/b1.jpg". Reason : Unable to open file

38
SFML projects / CosmoScroll - space shooter game
« on: June 22, 2011, 01:15:50 am »
How many people were on the team? How long did the project take?

Lines of code for this project?

What was the jobs of the people that participated?
Is everything original?

39
General / Clock Class/Time Class
« on: June 19, 2011, 06:44:28 pm »
True, I still want to use both though... I guess I want to know the libraries of each language.  I understand it perfect... When I first saw them, they were daunting. But then I took like 5 minutes to actually read through the code and understand it perfectly. I plan to make a class that's probably going to be reusable, where you can show seconds, minutes, couple(of them) or all three.

Any better ideas for this class, I would love to hear... I'm all ears.

40
General / Clock Class/Time Class
« on: June 19, 2011, 12:59:04 pm »
there's no easier way than this??

Thanks both methods are nice.

Wow, i don't know which one to use. Obviously the more compact one is better, but the one using c is very good too. I guess I will mess with both of 'em (4 some weird reason).

41
General / Clock Class/Time Class
« on: June 18, 2011, 05:43:22 am »
Hi, I have limited time on finishing a project i'm doing. The problem that's slowing me down from finishing this is kinda integral to my overall abilities and what I want to do with SFML.

I basically need to know how to display time. The tutorial shows how to use this, just not how to actually display it. I've played with it for a few hours, and I would rather not play with it any longer as my time is very limited.

I've been trying to cast sf::Clock.GetElapsedTime into a sf::String so I can concatenate them and display it on the screen. This obviously doesn't work.

sf::Clock doesn't inherit drawable so it's not something you can draw... etc. I'm kinda lost and on top of that, I kinda hardly know what I'm doing.

Pages: 1 2 [3]