Blender Python Movement part 2 - Forward and Backward

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,562
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 13, 2009

How to make basic forward and backward motion with python in the Blender Game Engine

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Distortify)

  • 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

    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 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

    The first line is another way of achieving this

  • GameLogic.getSensors searches for all sensors and cont.Sensors just the sensors that are connected with the controller, right?

  • @MrVecheater

    I am pretty sure that GameLogic.getSensors is for an older blender-python system.

    But it appears you may be correct!

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more