Yeps.. just like Kentaree said. Try the tutorials, refer each and every commands in the help files and most important of all, you must try to
understand the logic behind the code. You don't have to rush. Code at your own pace and start small. Eventually, your coding skills will bloom when spring comes.
Here is a brief overview on how to program in DarkBASIC:
1) Initialization. This is the first thing you do. Here is where you create all your objects, load up all your images, levels, everything.
2) Main Loop. After loading up all your medias, you enter a loop. This is the main core of your program. Here, you perform all kinds of process and user input. E.G What to do if the user presses the "Enter Key"?
3) Release. You delete all objects, enemies, animations, etc before terminating the program.
To put the above in code, it would look like:
Rem /* Initialization */
Sync On
Make Object Cube 1, 100
Rem /* Main Loop */
Do
If Upkey()=1 then X=X+1
If Returnkey()=1 then Goto Release
YRotate Object 1, Wrapvalue(X)
Sync
Loop
Rem /* Release */
Release:
Delete Object 1
End
So what it does is that the cube will rotate in its Y-Axis if the user presses the Up-Key, and exits if the user presses the Enter-Key. Try experimenting the commands yourself. The more time you invest, the more experience you get. Hope that helps.
AsriCE Crew,
- Adi
There's only one hope.