How do I Fall to death from specific height

0 favourites
  • 10 posts
From the Asset Store
Be careful and guide your animal safely to the grounds.
  • Hi.

    I am trying to test the current speed the character is falling at.

    However platform speed does not test this.

    How do i get a variable to know when the character is falling at a certain speed.

    I set up my character to have a max fall speed variable. Once the Vector Y reaches 1100 it triggers.

    However i dont know how to actually look for the Vector Y because platform behavior does not have this

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Basically i want the player to die when falling from a certain height.

    But the player can break his fall by sliding down the walls.

  • Ahh i found something that works.

    Created a global variable (FallSpeed). Set an event that if you are falling add 0.5 to Fallspeed.

    If player is sliding down wall set Fallspeed to 0.


  • VectorY is an expression of the Platform behavior.

    A positive VectorY means the player is falling. It works correctly; I have used it to implement fall damage.

  • Hmm. How do you get the VectorY or VectorX

    My C2 does not have this as expressions. I can only set them but cannot get any information from them

  • Oh i see you have to say "Object".Platform.VectorY or VectorX

  • Oh i see you have to say "Object".Platform.VectorY or VectorX

    Yup, this is the correct syntax, also when you can enter an expression, I think C2 has a pop up (f4 can make it appear and disseapear), that basiccalye let you select the avaliable expressions for each object (you select the object, then the expression)

  • Hello there, my first message here !! since I began to use construct, I'd always find answers for my so many questions here, by reading you guys.

    But, I must confess, I'm a little bit stuck now.

    Let me explain, I want my player to die after a fall of a specific height. But I want to him to die on landing, not at the moment he will cross this specific heights.

    I used vector Y expression to show me the speed of falling and set a speed comparison to trigger death.

    It works great, but when I had a sub-event "on land" or "not moving" and thing like this, it doesn't work. Maybe it's not the better way to do it....

    Please show me light and keep the goos work !


  • ladydye Hey there! Set a timer that begins when the player is not on the ground. If the timer is greater than a set value when the player hits the floor kill your player. If the value is not great enough to kill the player when they hit the floor, set the value to 0 when they land.

  • pretty simple uh!!?? works fine, thank you so much !

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