Mouse Look Script not working in 2.5

Game Engine, Players & Web Plug-in, Virtual Reality, support for other engines

Moderators: jesterKing, stiv

GoshFather
Posts: 4
Joined: Wed May 12, 2010 12:49 am
Location: USA

Mouse Look Script not working in 2.5

Postby GoshFather » Wed May 12, 2010 12:55 am

I have a problem that is probly easily fixed, yet I dont know how to do it. You see, the game that I have been currently working on in blender 2.49a has a simple mouse-look script and works fine in 2.49a. However, when I open the game file in the new 2.5 Alpha 2, or any 2.5 version for that matter, the script doesn't seem to work when I start the game engine. Any suggestions?

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Wed May 12, 2010 1:17 am

2.5x has a different API. Scripts need to be ported over to work.

GoshFather
Posts: 4
Joined: Wed May 12, 2010 12:49 am
Location: USA

Postby GoshFather » Wed May 12, 2010 6:28 am

stiv wrote:2.5x has a different API. Scripts need to be ported over to work.
How would I go about doing that?

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Wed May 12, 2010 3:43 pm

By changing the old script so it uses the commands from the new Application Programming Interface (API).

GoshFather
Posts: 4
Joined: Wed May 12, 2010 12:49 am
Location: USA

Postby GoshFather » Thu May 13, 2010 8:05 am

stiv wrote:By changing the old script so it uses the commands from the new Application Programming Interface (API).


Thanks, and one more thing. I've noticed that 2.5 now features armature constraints in the game engine, So, I make the constraint and name it. After that, I go to the logic tab and set up the "Armature" actuator and select "enable", then I enter the name of the bone in the "Bone" slot. However when I enter the name of the constraint in the "constraint" slot, it doesnt register and stays blank. Am I missing something?


Return to “Interactive 3d”

Who is online

Users browsing this forum: No registered users and 0 guests