Definitely still works with Python 3 in 2.56, too.
Thanks for the awesome tut, I finally figured out how to navigate the API documentation after watching-
@TheSkaterman68 try adding "include GameLogic" at the top of the script-
I have been including GameLogic out of habit, and don't believe I saw it in this script, any idea if this was necessary in 2.49 or is now required in 2.5?
every time i type cont = GameLogic.getCurrentController() it always says that the gamlogic is not DEFINED anny advice on that u can give me to fix that...?
every time i type cont = GameLogic.getCurrentController() it always says that the gamlogic is not reconizable anny advice on that u can give me to fix that...?
every time i type cont.GameLogic.getCurrentController() it always says that the gamlogic is not reconizable anny advice on that u can give me to fix that...?
Thanks for a great tutorial. By the way, the: ' ' characters are single quotes. One ' would be considered an apostrophe if its used in a conjunction or to omit a character, example: over= o'er , I am - I'm
Thank u for the the help it worked after i did it the second time now i can rate your vid im givin u 5stars and subscribeing u to some of my friends thnx :)
NIce vid but i have a question when i type in cont.activate(move) this is what i get back script error from controller and then it says attribute error object has no attrubute actuaters so i need help do u know what i can do to fix this
hi. what keyboard keys did you use fo r forward and backward? reply please!
fullgrown31 9 months ago
It's interesting that your Blender shows 249 as the version but you're writing the python that's required for 2.5 -
FYI, everyone, this code will work in 2.5 but I'm not sure for 2.49- (in 2.49 the python for the positive boolean function is .isPositive() )
Aphixxx 1 year ago
@Aphixxx
I made this when 2.49 was the latest version and it worked fine as both 2.49 and 2.5 use python 2.6
Distortify 1 year ago
@Distortify Nice, thanks!
Definitely still works with Python 3 in 2.56, too.
Thanks for the awesome tut, I finally figured out how to navigate the API documentation after watching-
@TheSkaterman68 try adding "include GameLogic" at the top of the script-
I have been including GameLogic out of habit, and don't believe I saw it in this script, any idea if this was necessary in 2.49 or is now required in 2.5?
Aphixxx 1 year ago
@Aphixxx
The first line is another way of achieving this
Distortify 1 year ago
This has been flagged as spam show
every time i type cont = GameLogic.getCurrentController() it always says that the gamlogic is not DEFINED anny advice on that u can give me to fix that...?
TheSkaterman68 1 year ago
every time i type cont = GameLogic.getCurrentController() it always says that the gamlogic is not reconizable anny advice on that u can give me to fix that...?
TheSkaterman68 1 year ago
every time i type cont.GameLogic.getCurrentController() it always says that the gamlogic is not reconizable anny advice on that u can give me to fix that...?
TheSkaterman68 1 year ago
so fucking easy compared to DirectX,Ogre or c++ in general
MrSaggat 1 year ago
Same problem I I V
firefoxdw 1 year ago
GameLogic.getSensors searches for all sensors and cont.Sensors just the sensors that are connected with the controller, right?
MrVecheater 1 year ago
@MrVecheater
I am pretty sure that GameLogic.getSensors is for an older blender-python system.
But it appears you may be correct!
Distortify 1 year ago
it wont work somone help
lemeuix2 1 year ago
@lemeuix2
If you look at the console, does it give you any errors?
Distortify 1 year ago
first line of the script doesnt work...
PureT3x4n 2 years ago
i got the code exactly the same and everything is connected but when i use the keyboard keys in the game engine it wont move
Guding12 2 years ago 2
Thanks for a great tutorial. By the way, the: ' ' characters are single quotes. One ' would be considered an apostrophe if its used in a conjunction or to omit a character, example: over= o'er , I am - I'm
JohnDelannoy 2 years ago
Thank u for the the help it worked after i did it the second time now i can rate your vid im givin u 5stars and subscribeing u to some of my friends thnx :)
maze3607 2 years ago
You are very welcome!
Distortify 2 years ago
NIce vid but i have a question when i type in cont.activate(move) this is what i get back script error from controller and then it says attribute error object has no attrubute actuaters so i need help do u know what i can do to fix this
maze3607 2 years ago
Hey maze!!!!
make sure when you are typing that you spell actuators with an 'o' before the r instead of an 'e'
and also check that you are using blender 2.49.
I hope this helped but if not tell me.
Distortify 2 years ago
okay i did that part but it still says script error from controller and im using blender 2.49.
maze3607 2 years ago
Hey!!!
have you connected all of your actuators and sensors to your controller????
if so then try the tutorial again.... you might have missed something
Distortify 2 years ago