View Single Post
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