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.

Newcomers DBPro Corner / Please Help, Not Sure What Is Wrong

Author
Message
Kiefer Greenspan
20
Years of Service
User Offline
Joined: 11th May 2004
Location: NY
Posted: 25th Apr 2007 09:52 Edited at: 26th Jan 2008 19:44
..

Attachments

Login to view attachments
dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 25th Apr 2007 16:58
i think this is a problem in your loop, but im a noob here so dont trust me.
Lucy
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 25th Apr 2007 17:19 Edited at: 25th Apr 2007 17:25
I'm going to take a look at the code for you...

(edit)

The sprites are all disappearing for me, no overlapping on my end and I didn't change a single thing from your snippet before compiling.

No matter where you are... everyone is always connected.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th Apr 2007 17:50
They may be differences in what your code does for other people compared to what it does for you, due to differences in updates you have all installed.

If you post code, it's useful to say what update version of Pro you are using.

As for your sprite problem, at the end of a level, try setting the screen positions of all your sprites off screen by positioning them at -100,-100.

TDK_Man

Lucy
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 25th Apr 2007 18:51 Edited at: 25th Apr 2007 18:54
Oh I missed the part about when you die you press enter... Hmm... Looks like a hall of mirrors effect to me. Basically not refreshing the background. Should be a simple fix, let me look.

(edit)
Yup, was an easy fix

At the top of your code, change it to look like this



No matter where you are... everyone is always connected.
n008
17
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 25th Apr 2007 23:35
i don't think the screen cleared right... but i'm just a noob...

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Lucy
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 26th Apr 2007 02:44
It's a hom effect, n008. Hall of Mirrors... the fix i posted will fix it just fine

No matter where you are... everyone is always connected.
Kiefer Greenspan
20
Years of Service
User Offline
Joined: 11th May 2004
Location: NY
Posted: 26th Apr 2007 05:50 Edited at: 26th Jan 2008 19:44
...
Lucy
17
Years of Service
User Offline
Joined: 19th Apr 2007
Location: Roanoke, VA USA
Posted: 26th Apr 2007 17:38 Edited at: 26th Apr 2007 17:41
Ok, well, HOM happens when there's nothing behind something for the system to draw. So it draws the location of something in one place and then when it moves on the screen, it never bothers drawing over where it just was, leaving it in place.

The funny part is there doesn't seem to be any reason for it to occur on your game because you're not turning the backdrop off anywhere. But theory doesn't matter as much as what actually happens.

There's more information on how it works at wikipedia http://en.wikipedia.org/wiki/Hall_of_mirrors_effect

The latest version of anything doesn't necessarily mean it's better. Updates always include new code. New code can introduce new bugs. Some people wait before upgrading or simply refuse to upgrade if there doesn't seem to be anything wrong with what they have. The old adage "if it ain't broke, don't fix it"

No matter where you are... everyone is always connected.

Login to post a reply

Server time is: 2024-09-25 21:28:55
Your offset time is: 2024-09-25 21:28:55