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 / Problem displaying sprites

Author
Message
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 6th Apr 2005 04:49
If i use this examle for positioning sprites I can not see them


but if i position them randomly like this I can



how can i make the first method work?

This was written in DBC

The happenings of tommorow are behind us now
Saido
19
Years of Service
User Offline
Joined: 16th Oct 2004
Location: The Netherlands
Posted: 6th Apr 2005 05:05
What are you trying to do? Putting them in order?


Ik zou groug Nederlandse mensen in mijn msn willen hebben die mij kunnen helpen met het leren van DBpro.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Apr 2005 05:14
Quote: "
xpos=xpos+51
if xpos>640:xpos=0:ypos=ypos+51:endif
if ypos>480:ypos=0:xpos=0:endif
"

try putting these line before you draw the sprites


In Space No One can Hear You Scream! (When your comm Line is cut?)
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 6th Apr 2005 05:30
Thank you so much. Just wondering why does that make a difference?

The happenings of tommorow are behind us now
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Apr 2005 06:25
its to do with your if statement that says does the sprite exist if so put the sprite on the screen other wise do not do this command move on to the next one.

hope that helps.

In Space No One can Hear You Scream! (When your comm Line is cut?)
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 6th Apr 2005 06:42
Ahh it all becomes clear. Thank you again.

The happenings of tommorow are behind us now

Login to post a reply

Server time is: 2024-09-23 17:24:13
Your offset time is: 2024-09-23 17:24:13