(AGK version: 108.24)
Submitted: 2014-12-17 15:22:10
// this example should work with AGK V1 and V2


// make and position a green box
CreateObjectBox(1,20,20,20)
SetObjectColor(1,0,255,0,255)
SetObjectPosition(1,-30,0,0)

// clone the the box and position the clone
InstanceObject(2,1)
SetObjectPosition(2,30,0,0)

// create a directional light (to make the scene look better)
CreateLightDirectional(1,-1,-1,0.2,255,255,255)

// position and orientate the camera
SetCameraPosition(1,0,80,-150)
SetCameraLookAt(1,0,0,0,0)

// main loop
do

	sync()

loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.