I’m working on my first blender game project, a survival game. I’ve progressed quite a bit and am kind of stuck on a problem.
I’m trying to get 1 tree object on a different layer to be duplicated and scattered over a terrain mesh an X amount of times.
The furthest I got was adding the tree object once to a world position with the following python code:
scene = bge.logic.getCurrentScene() object = scene.addObject("boompje","boompje") object.worldPosition = [1,5,7]
Can anyone help me out to figure this out?