DarkSlash's Recent Forum Activity

  • Ok, got it! I got also to update the tStart every time I move because I want a constant move, like a custom drag and drop, and not moving when I release the button!

    Here's the working result! Thanks!

  • I saw your code and now I got this. The thing is that works for moving right but not for moving left!

  • I have a graphic background grid (10x14, each square is 32x32 pixels) and a falling pieace (like tetris).

    Right now, I'm controlling the piece with the keyboard. So when the user hits right key, the piece moves 32px to the right, when it hits left key, 32px to the left. I want to have the same thing, but with mouse/touch. When someone touchs the piece,can move 32px to the left, to the right or down. But if I put draggable behavior to the sprite, the user can take wherever he wants.

  • Thanks!

  • How about if I want to see if there's an object with a certain position. I user System -> Pick by evaluating -> MyObject.X = 1 & MyObject.Y = 1. If the object exists, Construct2 pick it. What if there's no object with that position? How can I make a condition like that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mmmh exactly WHERE? I see no FOR there.

  • In the manual says that if the variable to iterate is bigger than the limit (ex: for(var i = 10; i > 0; i--)) The FOR wouldn't run. I need to do a descending FOR just like the written on the example. What is the way to do it on Construct 2?

  • Thanks!

  • How do you make those "steps" in the conditions?

  • And can I do something like this?

    for(var col = 0; col < 10; col++)
    {
        counter = 0;
    
        for(var row = 0; row< 15; row++)
        {
            if(myArray(col,row) == 0) { counter++; }
        }
    
        if(counter == 0) { DO SOMETHING }
    }
    [/code:1pha7xjk]
  • Thanks! It worked perfect!

  • Lets say I want to do this:

    for(var i = 0; i < 10; i++)
    {
      print(i);
    }
    [/code:1ctvlk41]
    
    How do I do it on Construct2?  I need the I in the ACTION side to set object positions!
DarkSlash's avatar

DarkSlash

Member since 13 Aug, 2012

None one is following DarkSlash yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies