AI Without Any Python

-[Killer]-: I wouldn’t worry about him not using any python, eventually he’ll have so many bricks he’ll have to learn python or get lost in his brick setups constantly.:wink:

Same with speeding things up, too many bricks can make logic slower than clever optimization using python which also eliminates the need for some brick types or reduces bricks by not needing two bricks if you want one to be the same only having an inverted output.

The best command ever: cont.deactivate(actuator)

:evilgrin:

Here are two good python tutorials to start:
http://www.ibiblio.org/g2swap/byteofpython/read/
http://www.diveintopython.org/

While you are practicing with python, you might want to do some practical applications, like killer mentioned.

If you need a simple GUI, then check this one
http://easygui.sourceforge.net/

Well, what would some practical applications of python be? Do you mean scripts for anything or practical applications in blender? Blender is what I’m going for, not because I can think of any use I would need for it now, but because I know I’ll need to use it later.

He means like the phone book I made. Yes, I was learning python for blender, but it’s easier learning pythons builtin API before gamepython. That way you’ll be able to enhance you game by adding advanced python methods, rather then gamepython or benderpython… Or gamelogic… Or… Yeah… Lol

Lets put those practical applications aside at this point. Those will come up, when it’s the time. You will notes it.


Based to my own learning experience, it’s better to concentrate to pure python studding first and go though at least one of those python tutorials I posted.

Once you understand the very basics of the python, it will much easier to start dealing with the specific Application Programming Interface (API).

But

If you want to start right the way with BGE python coding, you will have a three areas to learn in same time:

  • python
  • BGE logic
  • BGE API

Noob question alert:
Where do you find API and BGE (I have no idea what those are)? <<Message not intended for or directed to Killer, seeing he hates noobs such as myself lmao.
I am in the process of learning Python, and I’m getting a little use to it… And, I actually love it. I, too, was learning python for blender, but I think I may stick to regular coding for a while lmao. Hopefully, one day I’ll be able to put my skills to some good use.

Killer is a talent kid, but he has a typical young age ‘I know it all’ attitude.


The BGE stands a Blender Game Engine.
The API stands a Application Programming Interface.

The BGE API you can found here:
http://www.blender.org/documentation/249PythonDoc/GE/index.html

With BGE API you have access BGE data, example like a object location and velocity etc.

The Blendenzo’s site has a tons of BGE information:
http://www.blendenzo.com/indexTuts.html

:ba: Can’t you guys stay on topic !!! Its not a teach-me-everything-I-need-to-know topic !!!

Nice AI. Are you still uptimizing it ?

Thanks for the help everybody. I really appreciate it. (Yes, even you Killer…)

If I ever become become succssful enough, I’ll make sure to do a great deal of donating to, and maybe even a small amount of advertising and recommending for, Blender.

As for Rewii93: Topics tend to branch off into subtopics, while still relating to the beginning topic in some way, all depending on the comments.
In attempt to add to keep the topic going: One day I’ll upload one of my files where I’ve used all logic bricks and no scripts for my AI. Its not TOO bad, but its not as good as it could be lol.

(Yes, even you Killer…)

ummm… err… ok o.O

well… im glad I could… um… err… be of your assistance…

I don’t want to put up the impression i’m a noob hater… because I’m not. Just wait till you’ve been on these forums for almost 3 years, you see a LOT of noob that join one day, quit the next, because they come expecting to make an MMORPG game and want this massive team to help them, which they know nothing, so they need people to do work for no money, do ALL the work, and get paid from the “profits” that the game will make xD

Anyway… back ontopic now =)

One of the blue guys went rambo, out of nowhere he just started spinning real fast and shooting. I couldn’t take him down, he was killing armys of red guys.