Alice Community  

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

Reply
 
Thread Tools Display Modes
Choose your Character!!
Old
Jeremytroid
Guest
 
Status:
Posts: n/a
Default Choose your Character!! - 11-06-2009, 05:31 PM

How do you make it so that when you click something you are able to control it?
   
Reply With Quote
Old
zarfang8
Guest
 
Status:
Posts: n/a
Thumbs up 11-06-2009, 06:03 PM

let the arrow keys control a box or something invisible, and when you click on a character, have box move to that character and that character vehicle it.

Last edited by zarfang8; 11-15-2009 at 06:51 PM.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-07-2009, 02:02 AM

That's a great idea, zarfang. I had one too, but that one's easier to understand. Great job!

My idea was to make a world-class object variable, then have it set it's value to what the user clicked, then have the arrow keys move that variable.


(')>
   
Reply With Quote
Old
Jeremytroid
Guest
 
Status:
Posts: n/a
Default 11-07-2009, 09:29 AM

I messed with it after I made the thread. It's actually quiet simple. You change the "vehicle of the 'object' to the 'camera'" when you click the object and then have the camera "set point of view to 'object'". Then you just make the arrow keys move the camera. In this case it's easier done than said.

Edit:Here's an example world. This was made under the context of an FPS but it could be worked with to do any thing probably.

Controls: Click=choose character
Arrow keys=move
Space=Shoot
Attached Files
File Type: a2w character selection.a2w (1.75 MB, 13 views)

Last edited by Jeremytroid; 11-07-2009 at 09:45 AM.
   
Reply With Quote
Reply

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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.