Blender 2.6 Tutorial - Python Game Engine Programming - Part 1

preview_player
Показать описание
Part one in this series of tutorials for learning to use the Blender Game Engine via Python. It's recommend that you are familiar with Logic Bricks from my Game Engine Physics series of tutorials. Plus, you should be reasonably familiar with Blender Python programming in general, which you can learn via a separate Playlist that I have uploaded.
Рекомендации по теме
Комментарии
Автор

Some of the best Python tutorials on the internet.
a thousand thanks for the time and effort you put into these.

NTWFILMS
Автор

Thank you very much for all your hard work in presenting these.

I'm looking forward to watching them.

pixoled
Автор

Thank you kindly. I'm just making all the tutorials that I wish that I had. Documentation for open source software always seems to a little behind, so I'm just trying to help everyone else come up to speed much quicker. Thanks for watching and helping to get the word out please.

FirstGradeCalculus
Автор

You're very welcome. Thanks for following along.

FirstGradeCalculus
Автор

Great! Thanks for following along. There are many more tutorials in the pipeline.

FirstGradeCalculus
Автор

Blender is challenging no doubt, especially with open source documentation, which is one of the weaknesses of open source software. Thanks kindly; I appreciate the feedback.

FirstGradeCalculus
Автор

Under the Help menu at top, select Toggle System Console. You have to then pick it up from the task bar. Or, for version 2.66 and later, it has moved to the menu to the left of the Help menu.

FirstGradeCalculus
Автор

If you're using the logic bricks with a keyboard sensor, you don't need that part of the code. Logic bricks are quick to implement; using the Python approach gives you more power.

FirstGradeCalculus
Автор

Ok works great :D good step by step in setup helpful for beginners like myself. Made a user mistake in code and was quickly helped with an answer. Thank you I'll continue along.

ozaffer
Автор

I too wanted to thank you for the lessons, so far I only have been working on the artistic side of Blender now there is some time for the logical part. It's a good thing I had some experience with another programming language this makes it easier. Those tuts about the game engine physics are also great. GOOD JOB AND KEEP IT UP ( altough it's easier said then done sometimes ^^ )!!!

tommom
Автор

You would have to render an image in Cycles and then use that as a texture map within BGE.

FirstGradeCalculus
Автор

It actually might be an error further down in the file; Blender Python is kinda weak on reporting the location of errors. Check for typos, missing colons at the end of conditional statements, the use of braces, brackets and parenthesis (sometimes they look like each other in the videos) and make sure to use tab to indent lines after the start of a method or conditional statement. I've seen that error before and I think it was always an error elsewhere.

FirstGradeCalculus
Автор

It will be to your advantage to type in those green comments as well!

FirstGradeCalculus
Автор

No time for that. When I get my web site up and running I'll put some example files on line. My work computer is never connected to the web and I have no direct access to those files right now anyway. Also, make sure your YouTube player is set to 720p as all my videos are uploaded at 1280 x 720.

FirstGradeCalculus
Автор

It's more likely that you have typo or programming error further down in the code which is causing that error.

FirstGradeCalculus
Автор

think you very much! you video is very helpful to me, I am looking forward to you out more about bge python programming.

上街散人
Автор

You're very welcome. Thanks for watching.

FirstGradeCalculus
Автор

Great stuff,
Is there any advantage for using this method over the full "logic brick" method ( where you would use a keybord sensor instead of an always sensor ). 
I mean, does one of the methods will have a better performance ( run faster ) or making it easier to convert it to an other platform ( like andfoid, I am using Gamekit )?

jovlem
Автор

You can reference the Mathematical functions via python.org.

FirstGradeCalculus
Автор

Hi

Can you use pyserial with blender engine and the game thats exported after you finished does it need other blender related stuff to run on other hardwares or as long as the hardware has python interpreter the game would run? thanks.

Timodia