Tile Map issues

Get help using Construct 2

Post » Wed Apr 27, 2016 11:08 am

Message: Landermere can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Hello there Ladies and gents of the internet!
I come today seeking advice so allow me to explain my situation :)

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.
http://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.
http://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 :)
Take care
Chris.
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu Apr 28, 2016 10:15 am

Bump :)
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu May 05, 2016 5:52 pm

Bump
B
8
S
1
Posts: 46
Reputation: 544

Post » Thu May 05, 2016 7:48 pm

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.
B
45
S
21
G
65
Posts: 1,118
Reputation: 38,227

Post » Thu May 05, 2016 8:07 pm

Interesting, I will have a look into that :) Thanks
B
8
S
1
Posts: 46
Reputation: 544


Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev, oosyrag and 27 guests