> You probably have a bottom sprite or platform, you need 2 events for calculating the height of your tower.
> First you want to create a family for all your blocks, the first event is to check which block is the top of the tower by using the event “Pick furthest (buildingblock) from (platform)”, now you have the coordinates of the top block. Now to calculate the height of the tower you can use the expression “distance” it will ask for 4 coordinates, X and Y of the bottom point and X and Y of the top block. This returns the total distance between the 2 points and should (probably) be the towers height.
my event is as follows : box -> pick furthest to (line.x,line.y)
I want to be able to get the coordinates of the furthest box in the action, how do i do that?
ps: line is my platform
Box-> pick furthest to (line.X,line.Y)
Set variable Tower_Height to distance(Box.X,Box.Y,Line.X,Line.Y)