O'Reilly logo

LiveCode Mobile Development HOTSHOT by Edward D Lavieri Jr.

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

Programming the Custom Properties option

Custom properties provide us with tremendous flexibility to manage objects in our mobile apps. Objects in LiveCode have properties such as location, rect, size, various colors, and countless other properties. What if you want to create an object such as an avatar for a mobile game? You might want to give it properties such as health, stamina, coins, dexterity, age, hair color, and more. LiveCode affords us that type of programming flexibility.

In this task, we will create a car with custom properties.

Engage Thrusters

  1. Create a new card and name it CustomP.
  2. Drag a Rectangle Button onto the card and make the following customizations using the properties inspector:
    1. Set the width to 82 and the height to 23.
    2. Set the ...

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