Blender Python Movement part 2 - Forward and Backward
Loading...
3,562
Loading...
Uploader Comments (Distortify)
see all
All Comments (20)
-
hi. what keyboard keys did you use fo r forward and backward? reply please!
-
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.getCurrentContr
oller() it always says that the gamlogic is not reconizable anny advice on that u can give me to fix that...? -
so fucking easy compared to DirectX,Ogre or c++ in general
-
Same problem
I I V
Loading...
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
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