nettemple's Forum Posts

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • Similar to a parent/children relationship so I can effect ALL items in a "group" with an action or behavior instead of applying the action or behavior to all of the items individually. This is very common and simple in many apps, I am sure there must be an easy way for this.

  • How do I group objects? I saw an old video using a GAME OBJECT behavior, but I no longer see this behavior available?

    Tagged:

  • Money! Both solutions work. TY

  • Not sure what that means... is there some type of "self" tag (i.e. card.self destroy) The condition is a simple "when I click on the instance"...

    Currently i have:

    OnLeftBut Clicked object (card) --> Destroy card (see below)

  • I create a new object with the "CreateObject" script. I then add many more so I have a multitude of instances of that same object. I want to click on an instance and have it "destroyed", but now it destroys all of the instances. How do I only destroy the instance that I click on and not all of the others?

    Tagged:

  • Trying to build a simple streaming player - how would I get this to play inside a simple Construct 3 project:

    "http://19013.live.streamtheworld.com:80/WFNK_FMAAC_SC"

    Thank you for the help in advance.

    Tagged: