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 / Sync on question.

Author
Message
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 25th Mar 2009 04:48
Hey, is the command sync on used in 2d games?


REMEMBER ME, IM YITZU!
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 25th Mar 2009 08:39 Edited at: 25th Mar 2009 08:39
yes I think so cuz the 2d games need to be updated too or else you will not be able to move the sprites
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 25th Mar 2009 23:41
well, but i can put it just like, sync off and it will be done automatic, right?
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 26th Mar 2009 01:36
Doing that's not recommended. You should use Sync On and then sync every time you want to refresh the display--usually once per main loop iteration.

Thank you.
Yitzu
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 26th Mar 2009 23:08
ok, but im having a problem with the sync on command, when i put it, the bitmaps arent visible, they just appear as a black screen, why would this happen?

This is the code:




So, i wondered why that happened...
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 27th Mar 2009 04:32
I'm a noob to DBPro too but I think it should be something like this:
Is that correct?

...
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Mar 2009 04:49 Edited at: 27th Mar 2009 04:52
I think that in DBPro, when you load a bitmap without a number it won't take up the entire screen like it does in DBC. Try loading it as an IMAGE and then using PASTE IMAGE or the SPRITE command to put it on the screen.



To modify Dar13's code a bit (which was correct as far as I could tell)


<---Spell casting battle game!
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 27th Mar 2009 10:25
Or just load bitmap filename, 0?

Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 29th Mar 2009 19:35
You can still use suspend for key.

Login to post a reply

Server time is: 2024-09-28 04:13:59
Your offset time is: 2024-09-28 04:13:59