DoomEyes's Forum Posts

  • I cannot figure out why my overlapping works when it's not in an OR statement, but if I make an OR statement, it does not work. Thank you for your help.

    Why does this work?

    [attachment=2:1cvs4pmr][/attachment:1cvs4pmr]

    But this does not?

    [attachment=1:1cvs4pmr][/attachment:1cvs4pmr]

    My Z order

    [attachment=0:1cvs4pmr][/attachment:1cvs4pmr]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have 4 created already? Then use for-each, not a for-loop.

    Thank you.

  • You have to Create and place it. This is just moving the one object around.

    It's already created and placed in my layout. I want to randomly place it four times by doing a loop.

  • Sorry for posting such a newbie and simple question, but I've searched and searched, and I just can't find the proper way to format this. All I want to do is place my "bug" object four times on the screen. This places it only once. Thank you.

    [attachment=0:n5uzviwe][/attachment:n5uzviwe]

  • I do it like this, create a global variable call opacityToggle, it holds one of two values, it is either on or off (or maybe 1 or 0). On your grid button give it two frames of animation (set animation speed to 0). Everything then works off the variable. If oppacityToggle is "on" then set the animation frame for the button to on. If oppacityToggle is "off" set the Gridbutton animation frame to 2 (off). Make sure frame one is your On image of the button, and frame 2 is your off animation for the button (I am assuming here that the button is a sprite with the on touch/on click behavior). You then have an event that says if opacityToggle = "On" Set opacity to 100, Else Set opacity to 0 (or whatever it should be.

    Basically you use the variable to track if the opacity is on or off and everything else uses that.

    Thank you for your help. This is a good way to do it with animation.

  • Make an instance boolean variable named "opa" in your "Grid" sprite.

    GridButton on clicked > Toggle "opa"

    Is opa O & Trigger Once > Set Grid opacity to 100

    Is opa X & Trigger Once > Set Grid opacity to 0

    Thank you. That worked for me. I am attaching an image so other users who may need help can see how to code it. My boolean variable is named "Helper."

    [attachment=0:233avn7m][/attachment:233avn7m]

  • I have a Grid sprite with opacity of 0. I have a GridButton that when clicked makes the Grid opacity to 100, thus showing the Grid. My Grid and GridButton do not have any variables.

    How do I make this same button a toggle, so that if it is clicked again, the Grid opacity then goes back to 0? Thank you!

    [attachment=0:11kqna2p][/attachment:11kqna2p]

  • You haven't attached the event sheet to the layout under layout properties. And those events should be under 'on start of layout' or some other event that runs once otherwise you're spawning new blocks continuously.

    Thank you very much!

  • I am trying to recreate the 2-D array with the three colored blocks on this page:

    https://www.scirra.com/tutorials/307/arrays-for-beginners/page-4

    My test is not working. Attached is my capx file. Can someone please tell me what I am doing wrong?

    Thank you!

  • I have another question. How would I modify the Capx file if there is more than one location to enter/exit from? Thank you.

  • Thank you again, Plinkie. I was able to download the beta and run your file successfully. I was then able to use your example in my game, and it works great. Thank you so much! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Thank you, Plinkie, but I was not able to open your file. When I tried to open it, a message window says the project was saved in release 142 or newer, and I have 139.

  • I'm new to Construct 2, and I have some questions about moving your player between layouts.

    In Layout 1, when my player walks through the yellow door, he goes to Layout 2.

    When he walks through the door again, he doesn't appear back in Layout 1 in front of the door. (He's on the screen in Layout 1 again because I used "On start of layout" to set his position initially.) How do I fix this?

    If you then immediately try to walk through the door again, this time he doesn't appear in Layout 2. What's causing that?

    Thank you so much for your help! <img src="smileys/smiley1.gif" border="0" align="middle" />

    dropbox.com/s/qnz8vm8jc65d12l/LayoutMovementTest.capx

  • Thank you so much! :) That had me frustrated for so long.

  • Can someone please tell me why ScrollTo is not working in this test Capx. Thank you.

    dropbox.com/s/7y4fbyszgl8jq03/Scroll-Test.capx