How to Make a Box Move in Dark Basic

How to Make a Box Move in Dark Basic thumbnail
It is relatively easy to make a box move in Dark Basic.

Dark Basic is a tool for creating your own animations, applications, games, slideshows and demos by using the BASIC programming language, which is relatively easy to learn. By using Dark Basic, you can interact with DirectX, a collection of application programming interfaces, to create 3D objects and bring them to life. With just a few simple commands, create a box and make it move in Dark Basic.

Instructions

    • 1

      Double-click the "Dark Basic" executable to open Dark Basic.

    • 2

      Go to "File" and select "New" to create a new project.

    • 3

      Create a new box by using the "make object box onum, x, y, z" command. "Onum" is the unique identification number you assign to your new box; "x," y," and "z" are the dimensions of your new box. This example code creates a new box:

      make object box 5,10,40,80

    • 4

      Position your new box in a point inside the 3D space by using the "position object onum, x, y, z" command. "Onum" is the unique identification number of your object; "x," "y" and "z" are the coordinates of the point in space. Use this example code to position your box in a point in space:

      position object 5,10,0,200

    • 5

      Make your box move by using the "move object onum, speed" command. "Onum" is the unique identification number of your box and "speed" is the speed at which your box moves forward. Use this code to make your box move forward:

      move object 5,3

Related Searches:

References

Resources

  • Photo Credit Stockbyte/Stockbyte/Getty Images

Comments

Related Ads

Featured