Problems with GameBlender

I have a couple problems.

When I try to write a script and try to import GameLogic, it doesn’t work.

:x Also when I have two objects that are set to move on different keystokes, they move at the same time.

Please be more precise or post a .b file with the problem.

Keep Blending
António

So this is what it says when I try the import GameLogic command

PYTHON SCRIPT ERROR:
Traceback (most recent call last):
File “Text”, line 1, in ?
ImportError: No module named GameLogic

And when I make two objects and assign keys for them to move, one keypress moves both objects in either left or right.

Also, did you map the same button to both objects? If you did that, there’s no way for the game logic to determine which object you want to move if they both activate at the same key.

Nope. I wish it were that easy. Different keys. I tried it two ways once with the mesh duplicated and again with the mesh instatiated to no avail.

For the GameLogic problem, that module is only available when the Game engine is active, you can’t access it like a normal python script by using alt-p, then you would get the error you described.

For the second, you didn’t create two meshes in edit mode by any chance?

Everything works perfect now. Thanks

Easy han!! :slight_smile:

António