AM2000's Recent Forum Activity

  • I'm creating a puzzle type game in which certain sprites are being created on the start of the layout. So in that, there are 2 arrays, one stores all of the coordinates(on which all of the sprites will be spawn) present in the layout whereas the other one stores the co-ordinates on which certain sprites will be spawned. My question is, how can I create the sprites on the co-ordinates stored in the 2nd Array?

    Tagged:

  • You can do like this example: dropbox.com/s/7cwh6xxz6ms9epw/match_by_swap.capx

    Thanks for the file but there's no family. Need to get the family's members for that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So, I'm making a game in which there is a grid of 3x3 and the user needs to create a route by swapping sprites which lead to the objective. But the question is how can I swap the sprites as the they all are the members of the same family? I've tried the picking up the sprite by overlapping of the mouse coordinates but how can I swap them, storing the variables in temporary global variables and then setting the position of the sprite should be there, but I need to do it using family else there would be so much of events just for swapping. Any help would be appreciated?

    Like:

    on family drop:

    is overlapping same family:

    pick instance overlapping mouse.x and y: set glob var x to overlapping sprite.x

    set glob var y to overlapping sprite.y

    set position of dragged sprite to temp x and y

    set position of overlapped sprite to var x and y.

    Refinements would be appreciated.

  • So this is my first game in which there are sprites which have the Drag and Drop behaviour but how can I make the swapping the tiles? Like you pick a sprite and when overlapping another and you drop that, the dropped one gets placed on overlapped one while the below tile sets to the location of picked tile?

    Also since there are 3 types of tiles, one type of tile is static but other 2 are randomly placed in a grid, how can I do that?

AM2000's avatar

AM2000

Member since 5 Dec, 2023

None one is following AM2000 yet!

Trophy Case

  • 1-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

3/44
How to earn trophies