Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Too many images

Author
Message
game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 7th Jul 2004 22:02
I am making a rpg game dealing with tricking and fighting.
- members.aol.com/gametricking

It is working fairly well, the problem i have now is it randomly shuts down or a image of a sprite gets stuck in an area for awhile (ie - the guy walks but a grayed out image of him stays back at a part).

I think I may have too many images loaded. I set most the images I need (theres a lot since there are 8 characters with about 10-20 images for each) at the beginning. Is this the problem - should I only "get image" when I need it and then immediately delete it?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Jul 2004 00:13
If you have too many sprites on the screen you will get 2 images. If they are not on the screen, then you will be OK. You can get as many images as you like so long as you don't run out of memory, you don't have to delete them, but you can if you want to. 2 images usually means that you computer is slowing down.

game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 8th Jul 2004 00:27
If I run out of memory would the program quit or get an error. Thats what I think is happenning or is it really hard to run out of memory?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Jul 2004 00:36 Edited at: 8th Jul 2004 00:39
Yeah your computer will quit. It would take a lot of images to do that. Probably a few thousand. Maybe you are grabbing the same image lots of times by mistake. Or maybe your memory chips are faulty.

game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 8th Jul 2004 00:46
Thanks, maybe its because I have other programs running at the same time too? Anyway you could run my game and see if it happens to you? If not thats cool

http://members.aol.com/gametricking
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Jul 2004 01:39
I get the stuck image, but not the crash. Text causes the stuck image problem. You can try 2 syncs after the text or something. Or turn the text into images, and paste them.

game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 8th Jul 2004 03:48
thanks! I will try the sync see if it gets rid of the stuck image.

I think the other is lack of memory because i never really re-boot my computer and have about 4 things running at once. Tonight I will run the program without anything else going.

Did you actually play the game? did it seem too amateurish?
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Jul 2004 05:23
I had a quick test of the game. The trampolining was happening without me pressing anything. It could be made into a good game with some work. At the moment it is more of a programming test.

game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 9th Jul 2004 21:36
Thanks for the help - I figured out it was bad code that was causing my error not too many images.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 9th Jul 2004 21:47
Personally, for any 2D RPG game I'd drop sprites, use paste image instead and it's much easier to Z-sort because you have total control over the drawing order. For example, drawing a map, then sorting and drawing the items and characters is how I'd do it - I'd also draw the map to a hidden bitmap then copy it before pasting the characters and items - that way you only need to draw the map when scrolling - stuff that the character can go behind should be handled as items.

I have a little 2D RPG demo (map editing, item editing, z-sorting, player control, player jumping, sliding collision, screen scrolling, and even location switching for entering buildings). If you like I'll dig out the link for you, it's geared up to resemble Zelda style RPG's.


Van-B


The nature of Monkey was irrepressible!.
game tricking
21
Years of Service
User Offline
Joined: 5th Jul 2004
Location:
Posted: 10th Jul 2004 02:23
Thanks VanB I would like to see that. It does make sense to do it that way, I don't know why I just naturally went to sprites and they cause problems at times
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Jul 2004 03:39
Here you go...

http://van-b.dbspot.com/Zeldesque.rar


Van-B


The nature of Monkey was irrepressible!.
Xander
23
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 17th Jul 2004 13:51
I have had some similar problems, sometimes my textured models will turn black, it seems as if I run out of memory and my images start disappearing. I have 256 MB of memory and a 64 MB video card, I shouldn't be running out of RAM It seems to only happen on my computer...

Anyone else have their images disappear, entirely or partially?

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]

Login to post a reply

Server time is: 2026-06-10 02:04:58
Your offset time is: 2026-06-10 02:04:58