![]() |
OVER - how it works? - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +--- Thread: OVER - how it works? (/showthread.php?tid=858) |
OVER - how it works? - oblo - 11-04-2018 Hi all While testing my last game, I come with some issue that makes me wonder if I understood well how OVER works. AFAIK, OVER 0 is the default mode, so if I have... Code: OVER 1 ... last OVER 0 will affect all screen and all PRINT, DRAW, CIRCLE, PLOT commands? Affect sprites that are already draw in screen? I had a strange behaviour with the sonar so I had to make a workaround. Anyway, I'd like to know how OVER really works. Thanks and cheers. Re: OVER - how it works? - boriel - 11-06-2018 What version are you using? Please download the latest one (1.8.8 at the moment of writing) as it fixes lot of errors. In fact a bug with OVER 1 was fixed a while ago. If you still experience issues, tell me. OVER 1 means "Use OVER from now on". OVER 0 means "Do not use over from now on". It does not affect what is on the screen already, but what's going to be draw. It affects PRINT and drawing primitives (PLOT, DRAW, CIRCLE). Re: OVER - how it works? - oblo - 11-06-2018 boriel Wrote:What version are you using? Please download the latest one (1.8.8 at the moment of writing) as it fixes lot of errors. In fact a bug with OVER 1 was fixed a while ago. I am already using 1.8.8, and if OVER works as I thought, then something messed up and I don't know why ![]() For the sonar subroutine of Cargas de Produndidad/Depthcharge, I tweaked some of the code of the Clock2.bas but I couldn't implement the OVER sentence as the same way in Clock2.bas, because all graphics (ships, submarines, everything...) showed messed up after that. Here is the code of the sonar subroutine, but you can check all source code of the game (the .7zip file contains it) Code: REM Rutina del sonar Thanks! |