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.

DarkBASIC Discussion / [b]newbie wuestion[/b]

Author
Message
sorcre
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: United States
Posted: 16th Feb 2003 16:34
sync on : sync rate 0

remstart

what do those 2 parts of cript do? i can't find it in the manual
death is no more scarier than a rabit...
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 16th Feb 2003 16:46
lol, read the manual over again!
Sync and Sync Rate set how fast the screen is refreshed. Sync 100 is very fast, sync 1 is s l o w, and sync 0 is as fast as the computer can handle.
remstart goes with remend
it is used to put multiple lines of remarks
i.e



If you run this code, nothing will happen cos all remarks are ignored.

Whatever I did I didn't do it!
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 16th Feb 2003 16:56
sync on is what you will do from now on in every program you make. It tells the computer it will only refresh the screen when you tell it to. Before your program loop, you put sync on:sync rate X. X is your maximum framerate. Then in your loop, you put SYNC, which will refresh the screen and keep all object movement fluid.

remstart and remend are for making a block of remarks. Remarks are little notes you put in your program that are not code, but help you find what you are looking for.
REM is the basic command for a 1 line remark. As in:

rem this moves the object
move object 10,10

or a ` is also a substitute for REM (above the TAB key)

`this will hide the object
hide object 10

it is very useful for organizing your programs. get it?

Login to post a reply

Server time is: 2024-05-19 18:40:47
Your offset time is: 2024-05-19 18:40:47