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 / Problems with sprites

Author
Message
JRH
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 9th Jan 2012 01:00
Hi,

I'm having trouble with my sprites. I think it has something to do with my display/window setup:


Is there anything I could be forgetting? I am loading all sprites after setting display settings.

Cheers,
JRH

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 9th Jan 2012 13:31
erm, what kind of problems?

I can see nothing obviously wrong with what you have posted.

Could you explain the problem in more detail, perhaps provide an image and also some source code relating to your sprites? It'd make it a little easier for us to help you

JRH
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 9th Jan 2012 14:45
[FACEPALM] Totally forgot to mention what the issue is [/FACEPALM]

My sprites are invisible, and there are no error messages. I've tested it with multiple sprites and configurations, but nothing works. Interestingly, the splash screen uses sprites, and that displays fine.

Because of the structure of my code, in different Functions and Modules, it isn't really possible to post an understandable code snippet, but I will try.

Thanks anyway.

Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 9th Jan 2012 15:21
...And where are the sprite related commands?

-Mental Hybrid: A unique heavy story based shoot'em ~40% (primary project)
-CoreFleet: An underground commander unit based RTS (canned) ~15%
JRH
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 9th Jan 2012 16:40
I am not asking for help with sprite commands, I am asking if there is anything wrong with the display setup that could be making my sprites invisible.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 9th Jan 2012 23:45
What happens when you take off the display command; do the sprites show up?

Maybe there is a glitch with the VSync parameter due to the graphics card you have who knows.

If they are still invisible, anything in the world could be happing in your source code causing them to hide. Providing the correct camera is active, and you are calling the sync command, and your sprite images actually exist, and the images are valid then only god knows what is wrong with your source code right now.

Why is there a Show Window command; isn't the window already visible anyway?

Login to post a reply

Server time is: 2026-07-10 01:06:50
Your offset time is: 2026-07-10 01:06:50