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.

Dark GDK / how to add space in dark gdk

Author
Message
hwoarang
7
Years of Service
User Offline
Joined: 19th May 2012
Location:
Posted: 21st May 2012 00:57
hi in this if statment i want to paste image if lever[r][c]==1 else i want to add space.
i dont know how to add space. my think is that i would have to use dbText() or dbPrint() function?






full codde below


Fallout
17
Years of Service
User Offline
Joined: 1st Sep 2002
Location: Basingstoke, England
Posted: 21st May 2012 18:14
It looks like you're incrementing a value x+=COLS to move the paste position along. Why not just do that whether you paste a sprite or not? That'll be the equivalent of adding 'space'.

WLGfx
12
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 21st May 2012 19:48
If the screen has been cleared then not pasting a sprite will leave a space anyway.

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
Eccentric Developer
7
Years of Service
User Offline
Joined: 2nd Jun 2012
Location:
Posted: 3rd Jun 2012 19:26
You don't need to do ANYTHING to leave an empty space. By what I can understand of what you are trying to do, the basic layout of the code should be something like:

Login to post a reply

Server time is: 2019-11-18 06:01:37
Your offset time is: 2019-11-18 06:01:37