alex__dot__com's Forum Posts

  • 5 posts
  • I have a button that increases a global variable by 1, this is used for a character select menu. Obviously, I dont have infinite characters to select but I dont currently have a maximum as I'm still working on it. Is there an expression I can use that makes the number roll back to the lowest value after it hits the top value?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey there, I'm new to construct and I can't really think of a way to solve a problem I have. I'm making a silly little gambling game and I have a global variable for your total money and another for how much you're betting(if there's a better way to do this please tell me).

    The Problem:

    Global Variable B(the bet amount) can currently surpass Global Variable A(your total money), how do I stop that from happening?

    My idea would be to somehow make an event that makes it so the bet amount variable must be less than or equal to the total money variable but I have no idea how to go about that. I'd also like help making it so you can't be negative on the bet amount.

  • Ah I see thank you, I had them as sub-events which seems to be the problem.

  • Thank you so much for the help! The events have an error in the first else condition and I don't know why.

  • I am new to construct. I know the title sounds a little strange but I'll explain. I am using A and D to go left and right and I want to have the jump input set to hitting both A and D at the same time.

    My event goes: On 'A' pressed + 'D' is down = set vector Y(player.Y - 1000) + set vector X(player.X + 300)

    (the numbers are just examples and could change but you get the point)

    The event above 'works' but it makes it so A and D being pressed does not make the player move. How do I fix that?

  • 5 posts