Jump to content

Recommended Posts

Posted

Isn't that a trial?

You mean you start again? Well, that's always good when you have a messed up code, and have an idea for a better one

I think there is no better solution then just saying

{object}.left := left +1; etc.

But what do you use? You put all motions in 1 loop, or do you use 'multithreading'

I advise you multithreading (that means that several processes are running at the SAME time) if you have a very big variety of the number of processe running. I mean that by example you have 1 object moving, and later 100, then you might can see the difference in the frame rate, the game speed. With multithreading that won't appear, but if you open to many threads, it costs alot of CPU and memory.

I can make a better explanation if you want, and I don't know multithreading programming works the same as with Delphi 4

If you want to see an example of a program using multithreading (actually it switches very quickly from task to task, because mostly you have 1 processor)

check out: www.xs4all.nl/~kkptt/dynamitedoom/DDACreator0_6.zip

But I can understand if you not prefer installing it (install was necassary because I used a database, if you ever used it with Delphi you can know how irritating that works)

But I'm interested in the code, and I agree with the terms of the VidiWare copyright ;)

Posted

I saw only that it was a trial with the download page, but when I clicked on it, I never saw somewhere anything about that it is a trial. I think you're right. Wow Delphi 6 for free, thanks. I will install it later

Send me the code whenever you like

Posted

I know the only way to move is:

me.left = me.left + 1 or *.top

but how can i  make a way to check is me inside a building in juste a line or two instead of 10?

Or is "me" on the fire?

was "me" hit by bullet?

when u can answer that box ques. i would be wery thankful

Posted

Im starting over, caus the code is messed up, and i  think i have an idea, how to make the game easier buildt up than the other...

Does anybody know how to load pictures outside the exe file?

Posted

How do you load images from a sub-dir? ex exe is in dune and you dont want to load imgs inside exe but from dune/images.

How do u do it...

And can u in a simple way discribe multithreading, without the install file?

Posted

download the two mids that can be found on page two of this thread. Then extract those to C:, then extract the game to C:DuneIII. That should do the trick.

Posted

Yea, I had that problem with the pics. Anyone who is more used to Art programs know why?

Feel free to use my name, but remember, im supposed to be the evil Dark Emperor that you have to kill on the final stage!!

Posted
The transparent thing dont work...

My pic (Jacobs) with pink /purple back becomes silly and green back...

Forgot to mention. The transparent color may not be used somewhere else in the picture. Otherwise that would be transparent too

I forget that about loading when proces is running

And I will look about multithreading, is a time ago before I used that, and it is maybe different with Delphi 6

Posted

Hmm, don't forget to move the tank to a non-green spot, or change the background color and you see that it made difference. But it should really work

Posted

About the image loading, in the game itselfes:

use this command:

{ImageName}.Picture.LoadFromFile('{The filename, you can just type something like SonicTank.bmp. If it is in the same folder as the exe-file}');

Posted

And another thing:

You can change the order of the Images. So the tanks and the characters are on top. And all others below it.

With {Image}.SendToBack; you can send it to the lowest level

And with {Image}.BringToFront; you can bring it to the top

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.