mouselooking

Hi, I made an interesting FPS demo for my game, but I need a mouselook script to go along with it. I found one in one of the pinned threads up there, but when I paste it into my game it doesn’t work right. Or, rather, it doesn’t work at all. Or, rather, I don’t know what do do with it. “Run Python Script” didn’t work, and playing the game normally worked but with no changes.

Suggestions?

Thanks a lot,

-Kato

did the script have instructions?

can you tell us which one it was? they all work differently and need to be setup differently. At the very least you need to create a python controller and type in the script field the name of the text the script is in.

It was the one called “Example FPS Movement,” or something, the name of the actual file is “FPSExample,” and it’s the one with the wireframe demo.

I’d actually like to write my own script so it fits with my current setup which I am very happy with :). I’ve looked at all these examples and know a little Python, I still don’t quite get it though.

Thanks for the part about the controller, I’ll try it later.

-Kato

Any script taht uses GameLogic won’t run. Just kidding… It won’t run if you try to run it by clicking ‘Run Script’. But if you have it hooked up to a python controller that’s hooked up to a sensor in the logic buttons it will run when you play the game. So I’m hoping you have it hooked up with logic bricks…and probably properties as well…but that’s another story…

Just wanted to make clear that to use the script you can’t run it…

but use logic bricks…

Some scripts can be run though…Usually not game scripts though…because of GameLogic…

What kind of bricks should I make? I know a Python controller, but what kinda stuff should that be hooked into?

-Kato

make the setup the same, you might find it easier to import the objects into your current file [all at once], test if that works, then tweak it to your needs

this file?
http://home.earthlink.net/~nwinters99/temp/fps_controls.blend

No. I had worked with that one off-and-on for a few weeks, but everytime I put it into my environment, whenever it went over a nother surface (tri/quad) or another object, it would just bounce up and down indefinitely. I like my current setup, and would like to either tweak a script to work with it or write my own.

-Kato