Alice Community  

Go Back   Alice Community > General Discussion > How do I...?

Reply
 
Thread Tools Display Modes
Choose your Character!!
Old
  (#1)
Jeremytroid
Member
 
Jeremytroid's Avatar
 
Status: Offline
Posts: 19
Join Date: Oct 2009
Default Choose your Character!! - 11-06-2009, 06:31 PM

How do you make it so that when you click something you are able to control it?


AKA
Jeremy
The_Mirrors_Edge
   
Reply With Quote
Old
  (#2)
zarfang8
Member
 
zarfang8's Avatar
 
Status: Offline
Posts: 18
Join Date: Nov 2009
Thumbs up 11-06-2009, 07: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 07:51 PM.
   
Reply With Quote
Old
  (#3)
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Online
Posts: 665
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 11-07-2009, 03: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.


This video won a contest I entered for a local company. Hope you guys like it!

http://www.youtube.com/watch?v=4JZKwtDNCIk

Try my newest and biggest game: Resident Penguin.

http://www.alice.org/community/showthread.php?t=3205
   
Reply With Quote
Old
  (#4)
Jeremytroid
Member
 
Jeremytroid's Avatar
 
Status: Offline
Posts: 19
Join Date: Oct 2009
Default 11-07-2009, 10: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, 4 views)


AKA
Jeremy
The_Mirrors_Edge

Last edited by Jeremytroid; 11-07-2009 at 10: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 ©2009, Carnegie Mellon University