Added: 2 years ago
From: Distortify
Views: 3,582
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

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!

  • 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

  • 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

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

  • it wont work somone help

  • @lemeuix2

    If you look at the console, does it give you any errors?

  • first line of the script doesnt work...

  • 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

  • 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 :)

  • You are very welcome!

  • 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

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

  • okay i did that part but it still says script error from controller and im using blender 2.49.

  • 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

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