🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Is there anyone outhere that can actually help me?

Started by
2 comments, last by Mike 24 years, 9 months ago

Mike,

I have downloaded your code and ran "2D Engine.exe". I can't detect the problem you're describing. When I move the fighters across the screen, the animation bitmaps switches to the walking frame, but I don't see anything shakey as your described.

When the fighters are in the idel frame, their body rocks back and forth, I assume this is the effect you intended.

------------------

- code


- code
Advertisement
Ive had a similar problem under DX5 FullScreen mode where my program would constantly freeze the flip process and cause the sound to stagger when there were too many blit on the screen (on my P2/300, 4MB S3 Virge). But when I ran the program on a few laptops (with only 1MB video memory), the program worked perfectly!!
Im not sure what the problem is, but Im thinking that its either my S3 card that has faulted, or my program doesnt like cards with over 2MB. Maybe DirectDraw is trying to use the extra Video memory to store blits, and something is being miscalculated in the S3 or DX driver area, or maybe its my Video memory.
Maybe this is the case with your problem.
(1)Try changing your video card + drivers.
(2)Check device manager for duplicate instances of the same device(viewed in Safe Mood).
(3)Run a few games that use the same video mode and see if it fails.

Hope I helped.

  Downloads:  ZeroOne Realm

I’ve been trying to figure out a problem that I’ve been having with my current 2D engine, and I simply cannot find the problem with my code. I’m not saying my code is perfect, I know something is wrong, I just don’t know what it is.

In my frustration, I’ve made post on this message board before. However, no one is ever willing to really help me out. I get plenty of replies like “I looks like maybe…”, or “Sounds to me like…”, but no one will look at my code and actually help me find the problem. Please do not reply to this post with thinks like “maybe it’s…”. Just reply to this post or E-mail me if you’ve downloaded my source code, run the program, seen the problem, and hopefully found the fault in my code.

I’m not asking for to much here. My code is object oriented (meaning I use classes), and all of the DirectX code can be found in the DirectX manager .CPP file. More specifically, the code to flip the back buffer and the primary surface can be found in the flip surfaces function, and the direct draw setup can be found in the setup direct draw function. Although not extensively commented, my code is neet.

Now for the actual problem I’m having with my code. When the game is run, as the fighters move across the screen, they appear to be shaking very fast (you quickly see what I mean if your download and run the game). I’ve tested to see if for some reason the fighter’s x position is randomly increasing and decreasing as you move left (or right), but it does not. I’ve now spent two weeks on the problem and I cannot find the source of the flaw.

I’ve programmed the game using Visual C++ 6.0, and DirectX 6.0. I use only two direct draw surfaces, the primary surface, and the back buffer. To store all of my images I use arrays of unsigned short (it is a 16 Bit game, full screen). I’m trying to write a software only engine, and I want to code my own drawing routines and the like. Thusly, please do not reply with ideas like “Just use BltFast”, or “Use the hardware”.

I hope someone can actually help me, and not just guess at the problem.

You can download the source code and needed animation files from the following location: http://mike010.hypermart.net/source.zip . Please note that if you wish to debug the game, you can change it to a windowed mode application by change the true to a false on line 190 of the win_main.cpp file.

Hi Mike,

I can't get access to your game, I think your site is down.

Give me copy and I will have a look. I'm also programming a shoot-em up game.

I've had similar problems like yours and have solved them.

cheers

This topic is closed to new replies.

Advertisement