Tile Map issues

0 favourites
  • 5 posts
From the Asset Store
Two types of minimap: "full map" and "player is the center" (square map and radial map)
  • Hello there Ladies and gents of the internet!

    I come today seeking advice so allow me to explain my situation <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    So first of all this prototype was originally done with a platform and allowed the Vine_Arms to spawn on the platform.BBoxTop which works like a charm.

    However whilst transferring this project to the main game, I realised that I am using TileMaps.

    Below is a screenshot showing the working (Platform version) of the prototype.

    pasteboard.co/uTF5M8r.png

    Now whilst converting the prototype to the main game, I know that I need to change 1 line of code from

    Vine_Arm| Set Y to Platform.BBoxTop to something like Vine_Arm| Set Y to Tilemap.snapY(VineHeart.Y)

    I know this doesn't work but I can't quite put my finger on the answer.

    Below is a screenshot that showcase this.

    pasteboard.co/uTXnn4H.png

    My question is how do I get the Vine_Arm to spawn at the correct Y position on the TileMap, being the ground below the players X

    Thanks for your interest

    I look forward to hearing back from you <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    Take care

    Chris.

  • Bump

  • Bump

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • based on your screenshot, it looks like snapY is positioning it to the center of the tile, so you could try adding half the tileheight to that coordinate.

  • Interesting, I will have a look into that Thanks

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