Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
moving the camera up and down while "playing"
Junior Member
Status: Offline
Posts: 8
Join Date: Aug 2010
Location: New Orleans
Default moving the camera up and down while "playing" - 05-11-2011, 07:03 AM

How do I allow the mouse to control the camera's vertical attributes.
For example, there is an event that lets the mouse control its forward, backward, sideways properties, but I can't figure out how to make it look up and down while rendering or when you hit the "play" button.
Reply With Quote
Senior Member
reuben2011's Avatar
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 05-11-2011, 06:25 PM

There is no real "easy" way to do this since the "let the mouse move the camera" event only moves the camera laterally (the way you described.) Having it move vertically is going to take a little bit of effort. If you go to the world's functions, there should be something like "mouse distance from left" and "mouse distance from top" (I forgot the actual name of the function.) Anyways, you want to know the function "mouse distance from top" so you can figure out how many pixels the mouse cursor is away from the top edge of the viewing window. Then based on whatever number the function returns, you can move the camera up and down manually using camera's move function. I hope this helps!

-Escape the Kitchen
-That ninja animation
-Hill Collision

Upcoming Projects
-Some penguin adventure game?
Reply With Quote

camera, vertical

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.