andreone's Recent Forum Activity

  • I want to create an event that triggers only when the mouse moves from left to right or viceversa. I tried with creating a variable and setting it at ondragstart and than another variable set at ondrop. then I tried with comparing the two variables. if the first is less than the second than the mouse is moving from left to right but it doesn't work. the event created doesn't trigger anything. what am I doing wrong?

  • I want to limit the dragging of an object to a certain amount of pixel like you can't drag and drop an object for more than 100 pixel. how would you do that?

  • ok, I solved it with the MoveTo plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to move an object at a certain speed for a certain number of pixels so I was trying with the bullet behavior because the move action doesn't have an option for speed. I tried with the set distance travelled but the object keeps moving and doesn't stop. what am I doing wrong?

  • in Bejeweled whenever there's 4 or more objects matched, before destroying the matched objects, there's a distortion effect. can I do the same effect in C2?

    Subscribe to Construct videos now
  • On event drag self.x, mouse.y or clamp(self.x) mouse.y

    sorry, I'm not sure I understand what the action to perform is.

    event: ondragging object

    action: ?

  • I saw there's an option for the dragdrop behavior on both axis or either horizontally or vertically but I want to dragdrop both horizontally AND vertically but not at the same time.

    basically I want to constrain the dragdrop movement on the X axis when moving on the Y and viceversa.

  • is there any relatively simple way to swap blocks on a grid and enable a match detection system?

  • is it possible to dynamically assign a UID to an object? like I want to assign a UID to an object on a particular event but then I destroy that very same object and I want to reassign the previous UID to another object on the same event as before.

  • what I want to do:

    family: block

    event: ondrop block

    sub-event: block overlapping with block

    action: destroy block (only the block that I'm dropping)

    nothing happens while it works if I do the same thing with 2 different objects not in the same family.

  • I was already trying that but it didn't work (block disappeared instead of swapping) so I was looking for an alternative.

  • Could you provide more details about what you're asking? Do you mean switch blocks like in a grid-puzzle game like Candy Crush/Bejeweled?

    yes, like in CC or Bejeweled.

andreone's avatar

andreone

Member since 28 Jun, 2015

None one is following andreone yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies