rach13's Recent Forum Activity

  • Hi, im working on a game where i have to build a tower of block. im using the portrait format and i want to the screen to move upwards when the blocks has reach the height of the screen. I also want the other item on the screen to move upward at the same time. Any idea how i can do that?

    here is the link to the capx: drive.google.com/open

  • Thank you so much for your help

    >

    > > 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

    >

    Event:

    Box-> pick furthest to (line.X,line.Y)

    Action:

    Set variable Tower_Height to distance(Box.X,Box.Y,Line.X,Line.Y)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Hi, im trying to build a game in construct where all my objects are of physics behaviour. The player will have to drop a square from the top to the ground and try to build a tower. So far ive been able to drop the square but i want to be able to know the height of the tower so far . any idea?

rach13's avatar

rach13

Member since 2 Nov, 2017

None one is following rach13 yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies