0 Favourites

Can a single Tile from a Tilemap be moved?

  • Hi everyone, I been looking for this but I cannot find the answer

    Can a single Tile from a Tilemap be moved to a different X,Y containing an image, but I need just to move a specific tile not the whole tilemap

    Thanks in advance

  • I don't think so, but you could erase it and set it in a new tilemap that is 1 tile wide 1 tile high and move that tilemap. That's the only way I can think of doing it.

  • I don't think so, but you could erase it and set it in a new tilemap that is 1 tile wide 1 tile high and move that tilemap. That's the only way I can think of doing it.

    Prominent Thank you That sounds really good idea, I have to try it and experiment with that, the only thing that I'm worrying off is that I will need more than one tile it could be up to 20 or more, so I will have to create a lot of tile maps, will that be better performance than use a normal sprite and many instances of that sprite?

    I know I can create a sprite with the same image and size on exactly in the tile that I need but I'm worry because that will have to involve very very often create and destroy many sprites, If that make sense.

    Thanks for you help

  • 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 don't know.. if the tilemap is just sized to 1x1.. it might not matter much, but I really don't know.

  • I don't know.. if the tilemap is just sized to 1x1.. it might not matter much, but I really don't know.

    Cool thanks, I will have to try it and experiment with it.

  • Not sure watcha mean exactly. Lets converge.

    ?

  • Not sure watcha mean exactly. Lets converge.

    ?

    99Instances2Go Awesome you are really talented!! I really appreciate your reply!

    you're being extremely helpful as usual and you saved me several times till now, it's funny because I was trying to follow your advice from the last post that you advised using tilemaps, instead of spawning objects, as I found out after your last post on the other thread that the spawning objects was causing the slow down on the game so I was looking for alternatives, as it was very heavy spawning and destroying objects.

    This looks really cool and definitely will help me, I will have to experiment with that as I will need more than one fake Tile active at the same time.

    Thank you so much, my friend

    This is the Last post were we talked:

  • tarek2

    Ok, what about this ? Not finished, but the mechanics are there.

    The world is a truly infinity world, well not sure how big coordinates C2 can take.

    And the performance drop is minimal, well on my laptop, which is no ios device, and with a full HD resolution, which is also not needed, i think. It is all manged by 2 small tilemaps.

    Can probably be even more optimised by the smart guys in here.

  • 99Instances2Go wooow Thank you so much that is amazing, really really Awesome and the performance on the iphone6 is great around 60 fps, I need to spend some time studying the events as I still don't know what is going on, I have to admit I never used the loop "For" looks like it is very helpful this loop.

    Again you are the best my friend thank you so much for all your help it will really help me a lot

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)