Indomitus's Forum Posts

  • Hello once again fellas Constructors!

    My question has to do with creating a 10:00 and 05:00 countdown timer. I already read the forums but to be honest I'm not so good with the code (as I said in another post) and sometimes looks like... klingon.

    The thing is I have already 2 variables, called "10minsTimer" and "5minsTimer" (because the player should select between these 2 options).

    You'll see on the screenshot the code I'm using which the timer works nice but I need four digits and everytime I try something like (60,2) I get a syntax error. If I should use zeropad, where should I put it?

    Hope we could find a solution, thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It worked like a charm! I just added a "system Moved=0" for when the ball is destroyed and that's it, I have the turns working and showing the right flag for each one.

    Thanks a lot Multiple, cheers!

  • Hi guys, thanks for your prompt response!

    Multiple, you are right, the problem here is that I assigned (velocity=0) as an attribute to tell the system it is the end of the turn. The ball already has an "on destroyed" attribute but this makes it spawn again in the middle with velocity=0.

    I think option B sounds like the proper solution, but unfortunately I don't know so much the code to create "true" or "false" events, but here I attached a picture of my project, hope it helps to all of you to find a solution!

    Thanks in advance,

  • Hi there Constructors, this is my first post on the forums and I'm already excited to be part of the community!

    Right now I'm developing a football game and it's 2 players turn based, so far I've already created a Global variable called "turn", which I can rename "turn: 1" and "turn: 2", I see it more simple to assign the whole "routine" of the players on it's turn and then pass the torch to next turn.

    The problem is that actually I have a signal that tells when the ball reach or is on 0 velocity then set to next turn. So the complex thing comes on the "own goal", because the ball is destroyed and then it creates a new one in the middle of the field, and just because the new one is already on 0 velocity it makes the turn change when it's suppose to stay still.

    Is there any way to change the way how the ball spawns? otherwise if it wouldn't be by this spawn the turns would work properly, just right on the end of the turn, pass the torch.

    Need some light here, any help is more than welcome!

    Thanks in advance.-