nettemple's Recent Forum Activity

  • As a follow-up, currently I am using "amend text" but it always places at the bottom, not where the cursor is positioned.

  • How do I paste text into a text input object at the point of the cursor.?

    I want to paste "Hello World" into a text input sprite at this example location:

    Text input has "This is a test"... I want to paste in "Hello World" here...

    "This is a >paste here | This is the current cursor position< test" - the result would be:

    "This is a Hello World test"

    This is a dynamic modification so I cant simply amend as a simple replacement.

    In other words - the paste-in text could be many different text blocks.

    Thank You - d

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have modified my index.html file to be index.php?name=david

    How can I grab "david" from the url and place in my construct variable vName?

    Please be specific if possible.

    TY in advance - dM

    Tagged:

  • Let me clarify - this works ONLY on the sprite rolled over.

    I want it to be dynamic so that I can use one script to rollover ANY sprite and that sprite's name (or UID)is placed into the variable.

    So when:

    --- I rollover Sprite1, "Sprite1" is placed in the variable.

    --- I rollover Sprite2, "Sprite2" is placed in the variable.

    --- I rollover Sprite3, "Sprite3" is placed in the variable.

    The same script for all...

    I hope this is more clear.

    dM

  • I have a variable name varSpriteID.

    When I mouse over any Sprite, I want to set the variable to either the Sprite name OR the UID.

    Here is my crypto logic:

    on MouseOver - set VarSpriteID = CurrentObjectOver.Name

    How can I do this?

    Thank You - d

  • Works - once placed into the variable (then ref the variable) - thank you - nT

  • I have a MAIN SPRITE with 6 animations (1, 2, 3,etc). When I rollover a different "hover" sprite (named "hotspot"), I identify an instance number variable (named "stage" 1, 2, 3,etc) --- I Then create a new instance of my MAIN SPRITE and I want the animation to play based on the matching instance variable.

    For example when I rollover hover sprite and the instance variable is 3, I click to create new object MAIN SPRITE and it should play animation 3. See attached screen shot of attempt.

  • Solved it - Sorry, but still would like to know a simpler solution. SOLUTION: I eliminated the set X and replaced it with "place on layer" - I put it on a layer "CARDS" that the cards were placed on.

    I could not place it on the "CARDS" layer original because it scrolls (100% x 100% parallax)and I want the title to stay static (0% x 0% parallax).

    Any better solutions are welcome.

  • I am taking a snapshot of the canvas and downloading as a png. Everything works BUT the "title" on the screenshot is out of position. It is hard-placed 100 pixels from the left edge of the canvas and viewport (with a 0% x 0% parallax, so it wont move in app). I tried adding the position code as seen in the pict attached, but nothing seems to work. It always appears about 300 pixels to the right (X) of its original position. How do I get it on the screen shot where it actually appears in the app (100 px from the left edge)?

    Tagged:

  • I have a simple sprite that acts as a button, when I click it, it performs an action. How can I disable this interaction based on a condition (for example - variable = active vs variable = inactive) - I know you can disable interaction on a LAYER - is there any way to do it on an OBJET?

  • So would a wise strategy be to set up an unused layout to house all assets that you'll be spawning for a better preload and or queue?

  • Using CREATEOBJECT - does the sprite need to be present in the game to make copies? What is the most efficient and best way to spawn multiple objects?

nettemple's avatar

nettemple

Member since 8 May, 2018

Twitter
nettemple has 3 followers

Connect with nettemple