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.

DarkBASIC Professional Discussion / Solve: Low Resolution Problem

Author
Message
kike1978
13
Years of Service
User Offline
Joined: 22nd Jan 2013
Location:
Posted: 22nd Jan 2013 09:51
Hi All, I am new in this Forum. Thank you very much for any help...
I have made a Game, a clone of the old arcade game called "Pang". I have finished the game, but I have a problem. The game is executed in a window, then, when i play it and change the window resolution while the game is running, Darkbasic give me an Error.. "Runtime Error 302 - Sprite does not exist at line ---"
what to do for solve this?
Some screenshots from the game...
http://www.retrovicio.org/foro/showthread.php?22526-Super-Pang-Lost-in-Time-Version-Preliminar
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 22nd Jan 2013 16:57
Your game looks pretty good, well done!

Anyway, when you use the set display mode command all objects, images, sprites etc. are deleted, you must load them again! That's why you're getting this error!

Hope that helps
BC
Jambo B
16
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 22nd Jan 2013 19:54
Yep, as Broken_Code said, that's the issue.

Just replying to say "Nice one!" - that looks great. Very nicely presented.

James
kike1978
13
Years of Service
User Offline
Joined: 22nd Jan 2013
Location:
Posted: 22nd Jan 2013 20:31
thank you for answering so quick. Broken_code, The error happends when I change the windows resolution(right button mouse on windows wallpaper...)
Another question is that I wanted to run the game in 320x240 fullscreen(native), no windowed. But if I use "set display" with 320x240,320x200, or any else lower than 640x480, then the screen turn black. I have a GTX 460 nvidia.
And finally other problem the last version of darkbasic running on windows 7, the line give by darkbasic when an error occurs doesnt correspond to the line where the error is. Let me explain, If darkbasic says "Runtime Error 302 - Sprite does not exist at line 112", the line where the bug is, may be is 80, different than 112.
Thank you very much, the next week i will upload the game for you all

Login to post a reply

Server time is: 2026-07-07 02:37:48
Your offset time is: 2026-07-07 02:37:48