Hi guys, I'm trying to do control with real transparency – when you put a picture under it you must see the picture trough transparent pixels. Can you give...
I have a design question and am interested in your views. In my game I use images as tiles to display the background and all the bits that move around and...
I don't know if this would be practical for you, but wouldn't it help if you treated non-animated sprites as an animated sprites that have only one frame of...
It doesn't make sense to derive sprites from images since you may have 10 aliens attacking you and they could use the same image which would save much memory....
Hello, The Image class that my sprite class derives from is quite memory efficient as it just holds a pointer to a SDL surface (I don't create individual...
Hi rbaprog, I've read very carefully your post (2 times). Here are some observations: "You can get background using Themes unit" Do you know how? (I know that...
Thank you, thank you very much rbaprog!!! Here I will share what I have found and hope this will be helpful. DrawThemeParentBackground works fine on Delphi7...
Hello, i invite you to help us make a new friendly and helpful community for webmasters. http://forum.hostpower.info Also you can find great hosting packages...
I'm developing a 2d game that requires the sprites to be z-order sorted but am not sure how to go about doing this. Basically the sprites move around a...
That sounds reasonable. My next problem would be when to resort the list. As I'm not showing many sprites I guess I could sort the list every frame but its not...
A qsort is very fast and is therefore ideal to be run every frame. In our console games, we use a qsort on a list of hundreds of 3D objects every frame and it...
Thanks for your input Steve. I've now implemented a sort on my sprite batch based on the y pos and height of the sprite (ie the z-order is based on the feet...
Hello, This group has been a bit quiet this year so I hope 2009 will see some renewed activity. I have a few questions to ask which I hope will get some...
I will be out of the office starting 12/18/2008 and will not return until 01/05/2009....
steve.beaulieu@...
Dec 24, 2008 3:02 pm
7596
Hello, I need to store references to interfaces in a list so that when the user selects a list item I can easily access the interface that relates to that...
Hi Ian Munro, Use a TInterfaceList. That is a TList for interfaces. Regards, Tom ... From: delphigames@yahoogroups.com [mailto:delphigames@yahoogroups.com] On...
BTW, the problem you were having below is that when you shoved the interface into the Tlist, the reference count was not incremented. So, at some point, the...
Hello, I should probably explain my problem in greater detail as using an interface list will not work for me. I need to populate a visible list of data (a...
Hi Ian, Then you need to use _AddRef and _Release. This works great but you need to make sure that you call _Release *before* the listview deletes its items....
Hello, Thanks for your help in this matter. I've been speaking to the programmer of the DLL and he thinks that he may be able to sort the ref count in his...
Hi Ian, You are welcome. I like to monitor the group to keep my programming skills sharp (either learning something or being able to contribute). Good luck, ...
Can't you define something like type PMyItem = ^TMyItem; TMyItem = record item: IJanusDataSourceItem; end; function PMyItem MyItem(i: IJanusDataSourceItem) var...
I am developing a game using UNDelphiX with Delphi 7 and have a problem with the DXTimer. The game has 10 game levels and 3 levels of difficulty. The game...
Maybe this wont be so helpful but... I would keep the running on max fps, and update game state at different speed. For example: instead of moving a sprite by...
Thanks Igor but that would result in a very jerky movement. The sprites need to move in small increments at frequent intervals to get smooth movement. It's...