the tutorial

first timer here but i was understanding everything well until i came up on my
first script…i followed the directions and put in the codes to make grassy area and stuff but i still see a dark grey screen…anyone care to help?

import direct.directbase.DirectStart
run()import direct.directbase.DirectStart

#Load the first environment model
environ = loader.loadModel(“models/environment”)
environ.reparentTo(render)
environ.setScale(0.25,0.25,0.25)
environ.setPos(-8,42,0)
#Run the tutorial
run()

and there ya go…

Basically, all codes after run() never have any chance to run. And you have 2 run() there, the 1st one is called right after creating the window, and that’s all you got, empty space. Normally, you need to call run() only once.

so typically your saying i should code everything before run()

yay it worked i owe you one man :stuck_out_tongue: