Alice Community  

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

Reply
 
Thread Tools Display Modes
Help with parameters
Old
veserine
Guest
 
Status:
Posts: n/a
Default Help with parameters - 03-22-2010, 07:23 PM

I need to make a program that has three objects. The objects have to jump when clicked on. I'm trying to combine the three objects into one parameter as well. Can anyone help me out? Thanks.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 03-22-2010, 07:55 PM

First of all, thanks for joining the community! To add a parameter, simply make your method, and click the add parameter button in the top right corner of the method section. Name it what you want, and make it an object. Now, whenever you want the parameter object to be used, simply drag the parameter into the object part of the method where you want it. Simple! Here's a little example.
Attached Files
File Type: a2w example.a2w (603.5 KB, 11 views)


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
rankhornjp
Guest
 
Status:
Posts: n/a
Default 03-22-2010, 09:14 PM

Quote:
Originally Posted by zonedabone View Post
First of all, thanks for joining the community! To add a parameter, simply make your method, and click the add parameter button in the top right corner of the method section. Name it what you want, and make it an object. Now, whenever you want the parameter object to be used, simply drag the parameter into the object part of the method where you want it. Simple! Here's a little example.
Where did you get "object under the mouse" function?
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 03-23-2010, 03:06 PM

When you drag the method into the mouse method, it asks for an object, right? Under the menu, go to expressions, and then click on object under mouse cursor.


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.