rezagamertag's Forum Posts

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You can use a text variable as a Boolean by either making it "No" or "Yes".

    Or you can use the number variable "1" and switch it by multiplying by "-1".

  • I assume you want a condition that says "not the same" and then transfer the data of the first slot into a seperate variable that you can use later.

    And also put the data of the second slot into a seperate variable. And then after you "dropped" it (assuming drag and drop) you will be transferring the data back but in the switched positions. Hopefully this makes a little bit of sense and will help you in the general direction you're trying to go.

  • Can you perhaps upload the capx so we can see what you've actually done to the buttons? It would help out a lot in solving your issue

  • Can you give more explanation on what you're trying to achieve? Maybe an example? Because I honestly can't figure out what you're trying to accomplish.

    You want to crash objects into each other while dragging?

  • Put the sound inside the event that changes your sliderbar object. That is the most logical thing I can think of.

  • I'm not quite sure what you're trying to do other than give them random numbers. Please gie me more detail on what you're trying to do.

  • You can use an "System > Every Tick" condition where "glove > Set X" is always on mouse.x and "glove > Set Y" is always on mouse.y .

    And add another condition to it for instance: "Glove > Compare X" where X is always higher than a certain height or else it won't move the mouse cursor.

    You can put the "Set Y" and "Set X" seperately inside the "System > Every tick" condition to make it so the glove still moves sidewards (mouse.x) but not upwards or downwards(mouse.y).

    Hope this helped you a bit with your issue

  • Here's an example where when you press "S" on your keyboard the text changes to a random number between 1 and 1000.

  • Creating a random number you use random(1,1000) << This is to create a random number between 1 and 1000.

    It will also create for instance 234,3049. So to round it down you use round(random(1,1000)). I hope this helps you more with what you're trying to do.

  • I'm making a game where something is following the mouse and you can pause whenever you like by pressing ESC.

    During the pause you can move your mouse.

    When you unpause the thing following the mouse instantly moves to the mouse.

    I want to be able to put the actual mouse on the previous spot where it has been paused.

    So you can't "cheat" during the pause of the game.

    Hope my issue has been made clear and any help on this issue would be greatly appreciated.

    Thank you in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Go to your layout and double click it to add the "Keyboard".

    Then go into your event sheet and press "Add event".

    Click on the "Keyboard" and then press "On key pressed".

    Assign the key you want to use as button and add an action.

    If you mean clicking on a sprite:

    Add the "Mouse" to your layout just as you would add the "Keyboard".

    Then "Add event" > "Mouse" > "On object clicked".

    Hope this helped