Alice Community  

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

Reply
 
Thread Tools Display Modes
Is It Possible To Have The Mouse Vehicle An Object?
Old
AliceAndConnor
Senior Member
 
AliceAndConnor's Avatar
 
Status: Offline
Posts: 73
Join Date: Nov 2014
Location: Canada, B.C.
Smile Is It Possible To Have The Mouse Vehicle An Object? - 11-20-2014, 10:09 AM

Hi everyone! I was wondering if it is possible for the mouse to vehicle an object? This would really help me with my new game! Thank you so much for reading!


Connor + Alice Forever! (-:

Website: www.mccgameco.com

Have a nice day!

Also, I've been gone for a really long time, more than I can even remember and am now going to be way more active! :-D
   
Reply With Quote
Old
hmerrillb
Junior Member
 
Status: Offline
Posts: 10
Join Date: Nov 2014
Location: usa
Default 11-20-2014, 10:53 AM

thanks..


"I would prefer to have no money but to have a nice family and good friends around"
  Send a message via Yahoo to hmerrillb Send a message via MSN to hmerrillb  
Reply With Quote
No Worries!
Old
AliceAndConnor
Senior Member
 
AliceAndConnor's Avatar
 
Status: Offline
Posts: 73
Join Date: Nov 2014
Location: Canada, B.C.
Default No Worries! - 11-20-2014, 06:46 PM

No problem hmerrillb!


Connor + Alice Forever! (-:

Website: www.mccgameco.com

Have a nice day!

Also, I've been gone for a really long time, more than I can even remember and am now going to be way more active! :-D
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 212
Join Date: Dec 2012
Location: Frosno, Ca
Default 11-21-2014, 01:13 PM

Quote:
Originally Posted by AliceAndConnor View Post
Hi everyone! I was wondering if it is possible for the mouse to vehicle an object? This would really help me with my new game! Thank you so much for reading!
There is an event "Let the mouse move objects" That would do the positioning for you and "When the Mouse is clicked on Something" could be used to have the same object react to mouse clicks.
The Let the mouse move objects is not as straight forward as one would think. It is looking for a list of objects, but a list can contain one item. So, if you look just to the right of the stage window there is a "create new event" button. Click it and then select "Let the mouse move objects." This should add the new event to the event list.
Now, in the new event, click on the "Any Object" button and select "create new list" in the dialog that pops up:
  1. Give the list a meaningful name maybe something like mouseObjects.
  2. Make sure the type "object" is selected.
  3. Under values click new item.
  4. Click the <None> button in the new item and select the item you want the mouse to move.
  5. Click OK to close the dialog and add the object to the list.

This will give the mouse control over Forward & Backward and Left & Right automagically. For turning or moving up and down you would need to add some event and program it to do what you want. Typically this would be a keyboard event although it could be some other action.

Note: Look for "hidden" options in events! For instance if you right click on a "when a key is typed" event, you will see a menu that includes "change to" selecting this allows you to change the event from "when a key is typed" to "while a key is pressed" which, in many cases is what you really want. I know that a "When the world starts" event can be changed into a "while the world is running" event. There are probably other alternative events waiting to be discovered.

Mark


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Awesome!
Old
AliceAndConnor
Senior Member
 
AliceAndConnor's Avatar
 
Status: Offline
Posts: 73
Join Date: Nov 2014
Location: Canada, B.C.
Default Awesome! - 11-21-2014, 03:36 PM

Thank you so much Mark! That was extremely helpful! I really appreciate such an in-depth tutorial! Very good quality! Now my new game will be much better!
Thanks again and have a nice week, Connor


Connor + Alice Forever! (-:

Website: www.mccgameco.com

Have a nice day!

Also, I've been gone for a really long time, more than I can even remember and am now going to be way more active! :-D
   
Reply With Quote
Reply

Tags
mouse clicker, mouse vehicle object, new game help

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