Pop up data entry Form ...

0 favourites
  • 2 posts
From the Asset Store
Relax and relieve stress by popping bubbles in Fidget Anti- Stress Releaser!
  • What is a good way to create pop up data entry forms. I'd like to simulate declaration and entry of sprite properties which are then stored in dictionaries

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1. Create the Pop-up Form UI:

    Use Text Input objects for the data entry fields.

    Add Buttons to submit the data.

    Use Text objects for labels (e.g., "Enter Health:", "Enter Speed:").

    Example:

    Add a Text Input for "Health" and another for "Speed".

    Add a Button labeled "Submit".

    Add Text objects for the labels next to each input.

    2. Create the Pop-up Layer:

    Make the form appear as a pop-up by creating a separate layer for it.

    You can hide and show this layer using the "Set Layer Visible" action.

    Steps:

    Create a new layer named "Pop-up Form".

    Set this layer to invisible by default.

    On button press or when triggered, use the event to make this layer visible.

    3. Handle Input and Store Data in Dictionary:

    When the user fills in the form and presses the submit button, capture the input from the text boxes and store it in a dictionary.

    For each sprite, you can use its UID as the key in the dictionary, and the properties (like health, speed) as values.

    4. Show the Pop-up for Selected Sprite:

    When you click on a sprite, you can trigger the form to pop up and allow data entry for that specific sprite.

    5. Updating Sprite Properties:

    After submitting the form, you can use the data stored in the dictionary to update the sprite’s properties (e.g., health, speed).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)