Using pure python in game engine?

Hello everyone!

Would I be able to use python for my game without actually using logic bricks? Like the programming based programs?

I know that this means that all the functionality is done by me, but is it possible if I had enough experience? or are logic bricks a requirement?

Yes, except that you need a few logic bricks in order to say: If this, then run this Python script.

Thanks a lot micah!:slight_smile:

Also, Blender’s Python works alongside properties and logic bricks. When Game coding, you always need a list of objects you are affecting and logic bricks and properties you are connecting to. As in a mouselook script, the code will access properties like “cap”, and “invert”, so the player can add variation to how he wants the mouselook. So, with this in mind, when getting into advanced Game programming with python, yes, you will need a variety of logic bricks and properties to go with the code.
No problem

Simply: No

You need at least one sensor to trigger a python controller. Which means you have at least 2 logic bricks.

Take it as it is: a graphical editor that let you design the sensor-controller-actuators with pretty fast logic bricks plus a flexible way to add complex logic by python.
Finally it is a matter how you design your game structure. I advice to modularize as much as possible.

Monster

Thanks a lot guys!