Create objects with python?

I was just wondering, I just came back off a year break from Blender 3D, and was wondering how to create objects via Python.

This would go great with a physics game I’m wanting to make.

just with the edit object actuator

have a look at this link!
http://www.tutorialsforblender3d.com/GameModule/ClassKX_SCA_AddObjectActuator_1.html

Or directly using the current scene. http://www.blender.org/documentation/249PythonDoc/GE/GameTypes.KX_Scene-class.html#addObject

Haha, Sunjay03, you’re post count is 666. :stuck_out_tongue:

Thanks for the links.

And how would I go about to scale them?

Scale objects? You would use the world scale and local scale attributes. (World for reading, local for writing)

PS. There you go! 667. :stuck_out_tongue_winking_eye:

Wow, thank you! I’ll try to create some tests with creating objects via python with a mouse click and drag. Then you can rotate the camera with arrow keys and all.
:yes:

Hopefully it would turn out to be a 3D version of Incredibots ( http://www.incredibots.com )

Kool Game. PM me if you need help. I would love to get involved with something like that.