usbtypec's Forum Posts

  • If you need a link to the vid here it is:

    youtu.be/Szsaa00TkhE

  • Here it is. I followed a video I found on YT and it just does that, unless I missed something.

    (Also sorry for mobile screenshot I don't have access to a computer rn)

  • So I'm asking a very small game that uses touch to interact with a joystick. The problem is that when dragging the joystick, if the touch hasn't moved in a bit, the joystick slowly returns back to normal position, and I don't know why.

    MY guess is that it considers the touch a "hold" and that does something with the drag and drop, but I have no idea.

    Does anyone know why?

  • After messing around for a bit, I think you only need to have one instance in the entire project to spawn a clone of it. I tested what happened when I deleted the asteroids, and then they didn't spawn. It doesn't have to be on the same layout, there just needs to be one in the project (I think).

    Hopefully this helped.

  • One thing I have been wondering (sorry if this is a dumb question) is that on the Construct website, below the game categories, there is a GameJam button, but when I click it, nothing happens. Why is this? Is it just because there aren't any active jams?

  • thank you!

  • I am making a game that can be best summed up as ripoff Peggle, and I need help making aim dots for the ball before shooting. I have no idea how to make this, especially since it would have to take into account the arc of the ball from gravity.

    How would I make this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This should leave the buttons with 0 or 1 for variable2.

    It worked! Thank you.

  • can you elaborate on this part

    Yeah. On the event sheet that the layout uses, I have an event that has the array check "If SkinButton.id = 1" If it is true, then reset the color, if not, make it black. The array itself is 35 x 1 x 1, meaning I just use Check X. Since each SkinButton instance has a different value for the ID variable, it checks the slot that matches with that ID. (So Skin #3 would check slot 3)

    Did this explain it well enough?

  • I am making a skins menu for my game, and I'm using an array to store if each skin is unlocked (0 for no, 1 for yes). Each button for the skins is just an instance of a base object to make it easier, and each instance has an ID variable to see which skin it is. I have an event that checks the array slot corresponding to the skin with the ID (So Check X -> if SkinButton.id = 1, do actions). If the slot is 0 (locked) I want the button to be black (I used Set Color rgbEx(0, 0, 0)) but if it's 1, reset the color.

    The issue is that it checks for all instances, meaning if just one is locked, they all set the color to 0, 0, 0. How can I check the array for each individual instance instead of all of them?

    Sorry if I worded it weird.

  • You can't do it because you need the 35 conditions to check if each global variable is set. You can't create the variable name in that way. If you used an array for the data probably you could do it in one or two events.

    Okay, thanks 👍

  • I have a bunch of skins in a game I am making, and each skin has a global variable to check if it is unlocked or not (Example: BallSkin1, BallSkin2, etc. 0 means locked and 1 means unlocked). All the buttons to switch skins are just the same sprite with an ID instance variable so I know what skin it is. I want to check if the skin is unlocked, but can't figure out how to use the same "base" event for all of them instead of making 35 copies of all those events. I need to make a way to merge the string "BallSkin" and the ID variable, then return that without it being a string (so the skin with ID 4 would be "BallSkin" & 4 to make BallSkin4).

    I am trying to use "BallSkin" & SkinButton.id to make this, but it isn't working for some reason.

    Is there a way to return that as a non-string to check for the global variable?

    Sorry for all the reading :)