O'Reilly logo

LiveCode Mobile Development Beginner's Guide by Colin Holgate

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – making a racecourse

We're going to make a racecourse for little cars to move around. We'll make it out of the stack we've built! First we need to convert what is on the card into an image that represents walls and spaces.

  1. Using the LiveCode draw tools, add a bunch of objects to the ImageDataTest stack. These are going to be obstacles in the racecourse.
  2. To create the image we'll need, type this in the message box:
    import snapshot from rect the rect of this stack
  3. The previous command will take a screenshot of the card window, and place it onto the card as a new image control.
  4. Right-click on the image that was created, and select Launch Editor. This will open the image in the bitmap editor that you have set in Preferences | General

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required