PDA

View Full Version : FPS type camera movement


Akusai
10-20-2009, 04:53 PM
I know that this has been posted multiple times, but I have never come across a solution to it, the question I'm referring to is: How do you make the mouse control the camera, such as in an FPS game?

dubastot
10-20-2009, 06:33 PM
Have you seen my aim with mouse post. That will show you a working code for aiming using the mouse.

Akusai
10-21-2009, 09:24 AM
Yes I have. In fact I have the Aim With Mouse.a2w file. I get an error every time I run it

x2495iiii
10-21-2009, 01:01 PM
Give this one a try. There's two degrees of motion (move a little off center and you move slowly, move far off center and you move quickly). Unfortunately, it rolls slightly when you try to move diagonally, but I put in a stand up method when you hit the spacebar to counteract it.

Akusai
10-22-2009, 09:54 AM
Yeah, that does nothing....

I moved the mouse around and it did absolutely nothing....

x2495iiii
10-22-2009, 11:49 AM
If both our worlds didn't work for you, maybe the problem is the copy of Alice you're using?

What version are you using and when was it last updated?

dubastot
10-22-2009, 06:26 PM
Some features in my version of alice don't work so that probably applies to your world. Uninstall your copy and download alice again.

Akusai
10-23-2009, 09:28 AM
I'm using 2.0

It was just downloaded a couple weeks ago so it should be up-to-date.

x2495iiii
10-23-2009, 11:06 AM
Try using 2.2, in the long run it's much better.

dubastot
10-25-2009, 08:58 AM
Try using 2.2, in the long run it's much better.

How so? I had no benefits from it when I used it. I couldn't even make other type variables.:eek:

x2495iiii
10-25-2009, 03:45 PM
The version of Alice I'm using, 2.2 updated 9/1/2008, is wonderful, and has these advantages over 2.0.

-Much better GUI for navigating your files
-Walking people library
-Slightly better support for sound
-Fixed bug with random number generators

Akusai
10-28-2009, 09:25 AM
Well, the main problem I have with downloading a new copy of Alice is that I am on school computers and they just now increased security on .exe files that use the network, I.E, Alice on the web gallery, mainly because, other students and I have been playing Halo on the Windows machines, so if you could, please tell me possible solutions in terms of 2.0, mainly because my computer is too slow to run Alice.

x2495iiii
10-28-2009, 01:48 PM
You wouldn't happen to be one of those students, would you?...

No really, if you get an error when you run BOTH our worlds and your school has increased security, then it's possible that the worlds you're downloading aren't complete, that part of them is being filtered or changed by that increased security.

I just tested both worlds on my copy of Alice 2.0, and they worked perfectly. Assuming your copy of Alice is fine, the problem must lie in your ability to download worlds from these forums.

To test my theory, you could always download some of the worlds from your home computer, then save them to a memory stick and then try opening them with your school's copy of Alice.

Akusai
10-29-2009, 09:24 AM
Yeah, that may work, but it will have to wait untill I get my new ISP....

What I have right now is worse than dialup.

xxledzeppelin2x3
10-30-2009, 09:23 PM
well i dont know what your problem is with the program because i re-downloaded alice about 2 weeks ago like you and x2495iiii's fps camera movement code works perfectly fine for me so did the one that was posted in the other thread that you spoke of. so i suggest maybe you uninstall and reinstall it?

xxledzeppelin2x3
10-30-2009, 09:24 PM
well i dont know what your problem is with the program because i re-downloaded alice about 2 weeks ago like you and x2495iiii's fps camera movement code works perfectly fine for me so did the one that was posted in the other thread that you spoke of. so i suggest maybe you uninstall and reinstall it?


( i wasnt saying that in a rude way but it kinda sounds like i was in my writing, sorry :) )

oh god im sorry for posting it 2 times! im not trying to spam!

Akusai
11-02-2009, 12:25 PM
Yeah, I might have to reinstall it, but I honestly don't know what the problem is, with the FPS camera movement file, when the world starts the worl.LeftDist and world.TopDist variables set to None, and then no matter where I click, or where I move the mouse, they stay at None, pehaps if I put it in an infinite loop.....

x2495iiii
11-02-2009, 02:42 PM
That'd be pointless. The methods are already in a "While the world is running" event, which means that they are constantly called as long as the world is playing. Essentially, they're already in an infinity loop.

Akusai
11-03-2009, 09:25 AM
Mmmmm'kay, hang on, I'll take a screenshot of the code, and maybe someone might see an error or something.

dubastot
11-03-2009, 09:15 PM
The version of Alice I'm using, 2.2 updated 9/1/2008, is wonderful, and has these advantages over 2.0.

-Much better GUI for navigating your files
-Walking people library
-Slightly better support for sound
-Fixed bug with random number generators

Ok x249iii I redownloaded my copy of alice 2.2 and now it works really well.

jediaction
11-23-2009, 10:12 AM
This one was ok

Akusai
11-24-2009, 10:11 AM
Yeah, I would up scrapping the Guitar Hero ripoff, and here is what I wound up doing.

Akusai
11-25-2009, 09:42 AM
Yeah, disregard my last post, it was meant for a different thread.

Dak393
11-28-2009, 01:04 PM
Yes I have. In fact I have the Aim With Mouse.a2w file. I get an error every time I run it

What OS are you running? are you now running Alice 2.2?

Akusai
11-28-2009, 07:22 PM
Mac OS X, no, 2.0, and we've moved on to a Java unit, so.... Yeah.

I would continue working in alice, but my computer at home is too slow to run it.