caplocks1111's Recent Forum Activity

  • This will help you as it have really helped me, https://www.scirra.com/tutorials/71/how ... d-phonegap <<<Manual

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The Button object creates a form button which the user can click to perform an action. It can also be set to be a checkbox. Below shows both modes of the Button object in Google Chrome: a push button on the left, and a checkbox on the right.

    Button types

    Form controls are actual HTML elements floating above the game canvas in the HTML page. Therefore, nothing can be displayed on top of a form control, apart from other form controls.

    Form controls position themselves according to the layer parallax, scale and so on. However they are not truly "in the game" (since they float above), so it is recommended to avoid using scrolling, parallax and layer scaling with form controls, otherwise the end result can feel unnatural.

    Styling Button objects

    Button controls can be customised in a huge number of ways via CSS (Cascading Style Sheets). Rather than adding actions to set all of the possible properties, the Button object exposes a Set CSS style action. Knowing CSS will of course be an advantage here, but it is simple to use for simple properties. A few examples are listed below.

    Make the text red: Set "color" to "red"

    Make the background yellow: Set "background-color" to "yellow"

    Make the border a thick light grey: Set "border" to "3px solid #AAAAAA"

    Make the font bigger: Set "font-size" to "2em"

    Make a dashed red border: Set "border" to "2px dashed red"

    Button properties

    Type

    Either Button for a push-button or Checkbox for a checked/unchecked control. See the image above for a demonstration of both types.

    Text

    The text appearing on the button face or checkbox label.

    Tooltip

    A tooltip that appears in most browsers if the user hovers the mouse over the button and waits. Leave blank for no tooltip.

    Initial visibility

    Whether or not the button is shown on startup. If Invisible, the button must be shown with the Set visible action.

    Enabled

    Whether the button is initially enabled. If No, the button will be greyed out and cannot be pushed.

    Auto font size

    Automatically set the font-size property of the element according to the layout and layer scale. This will prevent the font-size CSS property being manually set with the Set CSS style action. Set to No if you intend to use Set CSS style to adjust the font-size property.

    ID (optional)

    An optional id attribute for the element in the DOM (Document Object Model). This can be useful for accessing the element's value from external scripts, or styling with CSS in the HTML page.

    Checked

    If Type is Checkbox, this is the initial check state of the control.

    Button conditions

    Is checked

    If Type is Checkbox, is true if the control is currently checked.

    On clicked

    Triggered when the user pushes the button or checks/unchecks the control, either by keyboard, mouse or touch input.

    Button actions

    Set CSS style

    Set a CSS (Cascading Style Sheets) style on the Button element. For more information, see the section Styling Button objects. Note that if the Auto font size property is set to Yes, any changes to the font-size property will be overridden.

    Set checked

    If Type is Checkbox, set the current check state of the control.

    Set enabled

    Set the button enabled or disabled. When disabled, the button appears greyed out and cannot be pushed.

    Set focused

    Set the input focus to the button.

    Set text

    Set the text on the button face.

    Set tooltip

    Set the text that appears for the button tooltip. Leave blank for no tooltip.

    Set unfocused

    Remove the input focus from the button.

    Toggle checked

    If Type is Checkbox, toggles the check state of the control.

    Button expressions

    The Button object does not have any of its own expressions.

  • Here is the manual https://www.scirra.com/manual/173/iap

  • IAP stands for In-App Purchases. The IAP plugin allows access to purchasing functionality on a variety of stores.

    Projects using the IAP plugin cannot be exported with the Free edition. A license is necessary to be able to export projects using IAP. Note that the Free edition may not be used for commercial purposes.

    Supported stores

    Currently the IAP plugin supports these platforms:

    CocoonJS (iOS + Android)

    Ejecta (iOS)

    Windows Store (Windows 8+, Windows Phone 8.1+)

    Blackberry 10

    Amazon Appstore

    Tizen

    Basic usage

    To access in-app purchasing features, the basic usage is as follows:

    On start of layout, use the Add product ID action to add the product IDs you will be using, e.g. "product1,product2,product3".

    After that (still in the 'Start of layout' event), use the Request store listing action. This starts downloading the names and prices of the given products. Some platforms require this information to be available for the IAP features to work.

    When On store listing success triggers, the product names and prices are available, and purchases can start being made or checked with the Has product condition.

    Terminology

    The plugin uses a Product ID to refer to an individual item available for sale. This is a short unique string, e.g. "myitem". Some stores instead refer to this in different ways, such as the "SKU". This does not matter; you can still enter it as a product ID, so long as it is the string that identifies the item. This is usually also different to the product name.

    App purchases

    The Windows Store allows the app itself to be purchased, e.g. to unlock premium features. The IAP has features such as the Purchase app action to support this. However the other platforms do not support the app itself being purchased. To make sure your events are compatible with other stores, purchasing the app will translate in to purchasing a product with the ID "app".

    Using Test Mode

    The Test mode property of the IAP object should be set to Yes during development, but must be set to No before publishing. In Test Mode, store purchases are simulated. Different stores have different terminology for this, including "Test mode", "Sandbox mode", or "Developer mode". Each store also handles test mode in its own way; in many cases all purchases will be forgotten each time you restart the app, allowing you to test that the purchase flows work.

    Publishing

    When publishing your app, it will be necessary to set up the store with the list of items you wish to have available for sale. The process for this is different for each platform and is usually part of the publishing process. Be sure to carefully record any product IDs you use in your events, and make sure you add an item with each product ID when publishing. Note that as described in the App purchases section above, if you use app purchases you should add a product with the ID "app" to represent purchasing the app itself on all stores except the Windows Store.

    IAP properties

    Test mode

    See the section on Using Test Mode above.

    Item group ID (under Tizen store settings)

    This setting applies only to apps published to the Tizen store. When publishing your app, create an item group for the IAP items you want available in the app, and then enter the item group ID in to this property.

    IAP conditions

    Has product

    Test if a given product ID has been successfully purchased by the user. Note that in some cases this will be false for the first few seconds of the app running even if the user has purchased the item, and then later become true when the store finishes loading the store status in the background. Try to avoid using this condition before On store listing success triggers.

    Is app purchased

    On the Windows Store, test if the app itself has been purchased. On other platforms, tests if the product ID "app" has been purchased.

    Is store available

    True if a supported store is currently available and purchases can be made. False on unsupported platforms or if no store is available (such as in an ordinary web browser).

    On any purchase success

    On any purchase failed

    Triggered after any purchase finishes to indicate whether it was successful (and the item is now owned) or unsuccessful.

    On purchase success

    On purchase failed

    Triggered after the purchase of a specific product ID finishes, to indicate whether it was successful (and the item is now owned) or unsuccessful.

    On store listing success

    On store listing failed

    Triggered after the Request store listing action has completed, to indicate whether the store listing was successfully retrieved. After On store listing success you can then check whether products are purchased, make new purchases, and retrieve lists of available items and their details.

    IAP actions

    Add product ID

    Use on start of layout to indicate all the product IDs the app will be using. The action can be used multiple times, or with a comma-separated list of product IDs to add multiple products at once. See the section on Basic usage above for more information.

    Purchase app

    On the Windows Store, request to purchase the app itself. On other platforms, request the purchase of the product ID "app".

    Purchase product

    Request to purchase a particular product by its product ID.

    Request store listing

    Request the details of available and purchased items from the store. This must be used on start of layout. See the section on Basic usage above for more information.

    Restore purchases

    Update the status of which items have been purchased from the store.

    IAP expressions

    AppName

    AppPrice

    Return the name and price of the app itself on the Windows Store. On other platforms, returns the name and price of the product ID "app".

    Error message

    In a "failed" trigger, the error message text if available.

    ProductID

    The ID of the relevant product in a trigger, e.g. On any purchase success.

    ProductName(productid)

    ProductPrice(productid)

    Return the name or price of a product available for purchase by its product ID. This information is only available after On store listing success triggers.

  • This Tutorial will help you with your situation.

    https://www.scirra.com/manual/43/layout-view

  • just drag the loader bar on the event sheet and resize

  • Thanks Everyone!

  • Sorry

  • Message: caplocks1111 is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed.

caplocks1111's avatar

caplocks1111

Member since 5 Jul, 2014

None one is following caplocks1111 yet!

Trophy Case

  • 10-Year Club

Progress

10/44
How to earn trophies