0 Favourites

How do I make a sprite slide along an axis?

  • Hi guys,

    I am trying to make a slider puzzle game where the tiles can either slide horizontally or vertically across the board example: google for gabrielecirulli 2048, it is the 2nd link

    I have tried using a platform behaviour, but when the tiles are touching each other (i have also attached a solid behaviour to the tiles) the movement goes all wonky.

    So I did some searching and came across this game: google for slider puzzle construct 2, it is the 2nd link.

    that I think uses a pathfinder to deal with the tile movement andI have been playing around with the pathfinder behaviour and cant seem to replicate the effect

    I am not going to be a lazy ass and ask for a detailed solution but would greatly appreciate it if a kind soul could point out the way for me. Thanx alot!!

    ps: apologies for the googling, I do not have enough rep to post links. lol

  • Hi guys,

    nobody knows how to do this??

    I also have another questions, I have a sprite with the custom movement behaviour attached, passing through a sprite with the solid behaviour. How do I stop the sprite when it touches the solid sprite? Do I need to do some extra events that do not rely on the custom movement behaviour

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I'm trying to figure out the same thing.

    I'm using Touch controls and detecting which way the touch is moving. However, it's not working.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Sprite Font Generator - v3
368 112,298
RetroDaddy's avatar
RetroDaddy
Unread hot topic
167 14,490
DMT2005's avatar
DMT2005
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,819
minhcuong's avatar
minhcuong