Page 1 of 1

Getting ready for exams.

Posted: Thu Mar 23, 2017 7:24 pm
by richmond62

Re: Getting ready for exams.

Posted: Thu Mar 23, 2017 9:23 pm
by FourthWorld

Code: Select all

Put random(6)+random(6) into tNumSteps
put the CurrentPosition of button "Player1" into tPos
add tNumSteps to tPos
set the loc of btn "Player1" to the loc of grc tPos of group "grid"
set the CurrentPosition of btn "Player1" to tPos
I'll be Dick Kreisel could reduce that to a one-line using arrays. :)

Re: Getting ready for exams.

Posted: Fri Mar 24, 2017 12:40 pm
by richmond62
I did it in a far cruder way . . .
Clark.png
Clark.livecode.zip
Here's the stack.
(31.56 KiB) Downloaded 339 times

Re: Getting ready for exams.

Posted: Fri Mar 24, 2017 12:44 pm
by richmond62
Screen Shot 2017-03-24 at 1.41.55 pm.png
I have NOT implemented anything below the RED line.