Visit the USA!
Video Tutorial
Click here for a YouTube video of Lloyd building this project. The video has been optimized for viewing on an iPad.
(Note: For a "crystal clear" video, you may have to manually change the quality settings in YouTube to "720p HD" - just look for the gear symbol in the bottom right-hand corner of the YouTube window.)
LiveCode File for this Project
- Visit the USA.livecode
Script for the button "Fly to San Francisco":
on mouseUp
set the location of the image "airplane" to 555,371
set the angle of image "airplane" to 90
put "Off we go to San Francisco!" into field "message"
move the image "airplane" to 82,281 in 3 seconds
put "Yeah! We made it!" into field "message"
wait 2 seconds
put empty into field "message"
end mouseUp
Script for the button "Drive to San Francisco":
on mouseUp
set the location of the image "car" to 555,400
put "Let's drive to San Francisco!" into field "message"
wait 2 seconds
put "Buckle up!" into field "message"
wait 1 second
put "We're off!" into field "message"
move the image "car" to the points of graphic "car route" in 10 seconds
put "Wow! That was a long trip!" into field "message"
wait 2 seconds
put empty into field "message"
show button "restart"
end mouseUp
Script for the card "travel":
on opencard
hide button "restart"
set the location of the image "car" to 555,400
set the location of the image "airplane" to 555,371
put "Visit the USA!" into field "message"
end opencard