Alice Community  

Go Back   Alice Community > Alice 3 > How Do I?

Reply
 
Thread Tools Display Modes
Making a parameter so moveTo can use variable along with target
Old
FlyinJoy
Junior Member
 
Status: Offline
Posts: 1
Join Date: Feb 2017
Default Making a parameter so moveTo can use variable along with target - 03-29-2019, 03:34 PM

I have 12 object markers (marker0, marker1, etc). In Method, I use the nextRandom Integer... function and put it into a variable.

I'd like to have it place this number after the string "marker", and then use it in the procedure moveTo as its target. This would replace 12 nested if loops (one for each marker) which is clumsy and slow.

Anyway to do this in Alice 3?

Thank you!
   
Reply With Quote
Reply

Tags
moveto, parameter, variable

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.