ultifinitus
  • Member for 10 years, 10 months
  • Last seen more than 3 years ago
What can I do to make sure that I have the energy to work on my game while working full-time?
43 votes

One thing that I've done lately, is getting up painfully early every morning to program- my mind is fresh, and I stay clearer throughout the day for my job and the rest of my activities. The problem ...

View answer
Moving players into same square simultaneously?
16 votes

Collision resolution, instead of collision prevention. Simply move the objects, then check if there have been any collisions. If there has been a collision with another block move back to previous ...

View answer
Animating sprites at different speed than what the game runs at
Accepted answer
10 votes

What I always do in this case is store a frameTime variable and store the last update time variable inside my animation class. Then I only update the frame if the currentTime - lastUpdateTime > ...

View answer
Is it possible to write a game that doesn't require a GPU?
Accepted answer
6 votes

Certainly- you can use SDL and I believe it does everything on the CPU by default. You can actually get some pretty good performance if you manage your code well.

View answer
Where do I begin if I want to write a C++ 2d game?
4 votes

I think a fantastic place to start is LazyFoo. This will get you up and running with SDL faster than any other place I've seen. I'd recommend quickly getting into OpenGL (as soon as you can stomach it)...

View answer
2D Platformer Collision Handling
4 votes

Well You can always do what I did, however poorly implemented it was on my part, I have a simple method in my "being" class called update_prev_pos(), which does just that, it stores your current ...

View answer
Key events outside of an SDL application
Accepted answer
3 votes

XGrabKey if you're using an x environment (you probably are, unless you know otherwise)

View answer
Problem With Smooth Animation In C++/SDL/OpenGL
Accepted answer
3 votes

Instead of delaying a set number of frames, why not only update frame if the time elapsed since the last update is xx? (for instance 100 ms) You're animations will look great- and won't depend on ...

View answer
2D Platformer AABB collision problems
3 votes

Forenote: My engine uses a collision detection class that checks collisions with all objects real time, only when an object moves, and only in the grid squares it currently occupies. My Solution: ...

View answer
What are the things to know before to start Game Development Using C++?
3 votes

You would probably be well served to know quite a bit First: Game programming is easier than it's made out to be, it's not extremely simplistic, however it is easy to wrap your head around. Second: ...

View answer
Flash AS3 Tower Defense Problem
3 votes

Simple: Why not simply use your line idea, but instead of making a line for the whole path, make a line from the bullet's last position? how: Make the bullet an object, and give it a velocity and a ...

View answer
How do I inform the end user about cheat codes?
3 votes

Well When I play games I absolutely hate the opportunity to cheat until I've played the whole way through. Because I'll get frustrated with one part and want to skip it, so I'll revert to cheats, but ...

View answer
Which language and tools should I choose for creating 2D games?
2 votes

C++ scares me, however feel free to tell me how stupid I am You shouldn't fear c++ it is a great language. My goal is to make 2D games like Terraria, Super Meat Boy, DefCon, etc. Which language ...

View answer
2D Platformer Collisions
2 votes

Okay language agnostic, I much prefer my approach to the shallow penetration test. Things You Need You need some way to store previous positions of your objects You need a way to detect and store ...

View answer
Suitable Client Server setup for Network Game testing
2 votes

Local Host: All the network testing I've done on localhost has been completely misleading. Since it's a perfect environment it's useless... Packet Loss: The packet loss and latency you experience ...

View answer
How can I create NPCs and scenes?
1 votes

The way I currently have my systems set up, events spawned by objects trigger scenes, as you stated you can have player triggers cause scene changes, and you can certainly use a state machine. You can ...

View answer
What should I do to prevent my monsters from walking off platforms?
1 votes

With my AI, I simply check if there's a platform below and int the direction of its travel (not using a tilesystem, just a groovy collision system). If there is not- or if it hits a solid block, it ...

View answer
Collision test solution for hack&slash game
Accepted answer
1 votes

First Simplicity is key. Second Expandability is necessary. What I would do, if I were making a "hack n' slash" is create a simple bounding box technique. Define the height and width of the attack,...

View answer
XNA - Moving Background Calculations
1 votes

Sounds like you are indeed talking about parallax scrolling. (it's not c# or XNA, but the skills are transferable) You can read up on some simple scrolling backgrounds in an sdl tutorial actually ...

View answer
Collision Resolution
Accepted answer
1 votes

Figured it out!!!!! Here's the new method: first, I add an object that I wish to check collisions, with my add_message_to_collision_queue(); function. I then invoke my handle_collisions() method: ...

View answer
How do I set up moving platforms in a 2D side scroller to interact with the player properly?
0 votes

Hahah, this is a pretty common problem, here's what I do-> Step 1: collision detection: Be sure you're separating your map into sections or using quadtrees to speed up grouping, Step 2: basic ...

View answer
How to deal with corner collisions in 2D?
0 votes

Answered a similar question here You may want to consider checking previous positions- For example : if your left side was previously to the right of their right side and you're colliding, then a ...

View answer
2D Platform Game Jumping
0 votes

What I've done int the past, is have your character hold a velocity in each direction. When I want a jump, I simply say vel_y -= (jump velocity here). And of course I have a constant gravity. One ...

View answer
How do I allow a player to manager several games at once with different players using game center?
0 votes

I would implement that functionality on your server, and have your data stored temporarily (the stuff that you know won't change) on the iPhone itself. (edit) whoah, do you even have a server when ...

View answer
Side detection on Rectangle collision detection?
0 votes

Gosh I find myself referring to my code a lot =D What I do is check your previous position, to see if it was previously outside of the rectangle, this works flawlessly in my game engine =) to get ...

View answer
Game ideas for a platformer
0 votes

Is this a commercial game? I would say a really cool game idea would be a platformer where you battle other players, as magicians or something, and can add to the map and destroy objects on the map ...

View answer