2,032 reputation
511
bio website
location Bavaria, Germany
age 30
visits member for 2 years, 5 months
seen 2 hours ago
stats profile views 43

2h
comment How would I apply gravity to a bullet so that it would drop slightly the longer that it travels?
I only added one dimension, because I thought it's enough to show the basic idea/concept, especially considering the question already started with gravity.
May
19
comment sprite array problem with initialization
You should always tag your questions with the programming language you're using (assuming it's relevant to the question, e.g. a code issue). I assumed this is C#, but it might be Java as well?
May
18
comment Can I write code from 2 computers at the same time?
Yes, SparkeShare is like dropbox, but using your own server (or a hosted one).
May
18
comment Can I write code from 2 computers at the same time?
Interesting program. You should post that in an answer of your own even though I assume Jordan is looking for some Windows solution.
May
18
comment What is the best way to close dialogs in a platform game controlled by keyboard only
I don't think forcing the player to wait one or two seconds (or even longer) isn't really something to aim for, unless the player is able to still skip that time.
May
18
comment What is the best way to close dialogs in a platform game controlled by keyboard only
If its important text or a long dialog, halt the game, show the text, but let the user skip the animation using the first button press, then advance or hide the text once he pushes the button again. If the game isn't stopped, the text advances/disappears based on time or actions done, not by simply pushing some button.
May
18
comment Can I write code from 2 computers at the same time?
Yes, exactly what I tried to say. Don't know any solution allowing real real time collaboration within an IDE. SparkleShare uses Git as its backend, although I'm not sure how it handles conflicts (if at all).
Apr
14
comment Storing data for a pokemon like game
It really depends on what you want to achieve. SQLite will allow easier mass editing like "update all creatures which have a Maximum of 50 hp"; while text files are more readable (easier to mod for Players).
Apr
14
comment Storing data for a pokemon like game
You should mention what language or platform you're using, because that might dictate what's more ideal or worse for example.
Apr
9
comment Pathfinding with different sized units
This doesn't really matter which algorithm you pick and the modification is quite minor. You should have some cost determined by the tile/grid position. So, rather than adding tiles[x][y] to the costs per step, you add tiles[x][y] + tiles[x + 1][y] + tiles[x][y + 1] + tiles[x + 1][y + 1] for example.
Mar
30
comment Inputting Only Alphabetical Input - Slick2D
Alex' idea is essentially adding whatever the player typed to your name (temporary). Once that's done, you can use a regular expression to match (and remove) all characters not fitting your filter. The following line should do the trick, although this is Javascript, but I guess it would work in Java as well: name.replace(/[^A-Za-z]+/, ''); (assuming name is the name stored as a string)
Mar
28
comment Delta Time in Videos
It can end worse than simply being "too fast". ;) I remember when I tried to play the classic Nibbles.bas on my 133 MHz Pentium - it simply crashed (or more specific: stopped with a interpreter error) due to dividing by 0: The game tried to measure the processor's speed and then used that value to calculate speeds. Only downside has been the fact a reasonably fast machine got it to cause a "divide by zero" error.
Mar
20
comment Using 4096*4096 background image in uinty tk2d
"Megatextures" is just marketing IMO. Behind the scenes there are still classic hardware limits and the bigger your textures get, the higher the costs (memory, handling times, etc.). Most of these "Megatextures" implementations simply handle all the mapping and usage while staying within the hardware's specific capabilities. Overall it's something I'd avoid on mobile platforms at all costs. Even if you've got free ressources you should probably better utilize them for something more important or leave them to save battery power.
Mar
18
comment Pixel perfect collisions for platforms
Ah, so those are jump-through platforms? Rather easy, you just exclude them when checking your head point. Once you've got these basics, you can check more positions (or just check rectangles rather than points). So you'd end up with 4 rectangles. The bottom one keeps you from falling through platforms, the top one keeps you from going into solid ceilings and the left/right one keep you from running/jumping into walls or ramps.
Mar
18
comment Using buttons on Smartphone shooter games
Yeah, I wouldn't force it in general, but this really depends on the actual gameplay mechanics as well. E.g. it could be possible that you only steer a spaceship and use special abilities, while basic weapon fire is automated (see "Armada Online" for an example).
Feb
12
comment How do I protect my game with CD key / serial number?
Well, you can combine both, e.g. making the first part of the key a random combination of characters and the second half the hash. Anyone selling the game couldn't use a keygen anyway (unless there's some way to ensure no collisions/conflicts happening, like a "vendor id" as part of the key).
Feb
11
comment What's wrong with my code?
Should be fine then
Feb
10
comment How to design rating (leaderboard)
Yeah, it has ist flaws, esp. given with the vague question, as we don't know how the actual quiz works.
Feb
10
comment What's wrong with my code?
How do you retrieve the elapsed time? Also which Version of SFML are you using? There are different ways measuring the time passed, and it's possible you're running into timing and/or rounding issues here. Personally, I prefer fixed time steps due to this.
Jan
31
comment PNG image as a level map for 2d game
No worries, it's how the site works, e.g. to avoid people creating new accounts just to upvote a single posting. :)