# How do I Jump Strength for Varying Tile Heights

Get help using Construct 2

### » Fri Oct 23, 2015 6:38 am

Hi everyone,

I was thinking of having an enemy jump when next to a tile map wall and having said enemy adjust its jump strength accordingly to the height of the wall. how would you find the highest tile co-ordinate?
B
54
S
17
G
6
Posts: 307
Reputation: 10,979

### » Fri Oct 23, 2015 6:17 pm

Here's a capx:
https://dl.dropboxusercontent.com/u/542 ... _jump.capx

To find the height of the wall you can use a loop with either "overlaps at offset" or looking at the tile itself with "tile at".

To calculate the jumpstrength use this formula:
jumpstrength = sqrt(2*gravity*height)
B
98
S
36
G
132
Posts: 5,525
Reputation: 84,013

### » Sat Oct 24, 2015 4:46 am

wow you are beast R0J0hound! thank you so much!! this is exactly what I was having trouble with. I think that I lack an understanding of how to approach such problems. I must study your examples thoroughly so that I can store them in my brain! Thanks again
B
54
S
17
G
6
Posts: 307
Reputation: 10,979