Jump at point

This forum is currently in read-only mode.
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hello,

    here is my script to make beast jump at player:

    <img src="http://dl.getdropbox.com/u/1095185/script.PNG">

    it work OK for me, but i want to make beast jump not on the player, i want to make him jump in front (or back) of him. How i can do that?

    Thanks.

    PS. i made 2000 ms condition to prevent beast jump all the time.

  • You mean, you want the beast to jump at the player once it's like 10 steps in front of him?

    I guess you could give your character an image point and set up an event like: If beast overlaps image point = jump.

    Wild guess, that is

  • [quote:298jmu1w]Always: set beast value('Distance') to: distance(dave.x,dave.y,beast.x,beast.y)

    [quote:298jmu1w]trigger once (you might need to put this below the other conditions for it to work right)

    +compare distance,less or equal to 100(i dunno how far you want it to be)

    +beast is on ground: make beast jump

    thats how id do it

  • it's me again... i think we need to make a new forum and name it "stupid questions by Flow".

    Anyway, i got problem again ...

    <img src="http://dl.getdropbox.com/u/1095185/script2.PNG">

    theoretical this script (event 7 and 8) should prevent NPC sticking to the wall...

    however, it doesn't work ;(

    <img src="http://dl.getdropbox.com/u/1095185/error.PNG">

    NPC just face against the wall and do nothing ...

    i'll go insane soon with this t_t

  • Can you post the .cap? It will just be a logic thing

    Edit: You have one event that is setting his speed to 25, one that is setting it to 250 under the same conditions (4&9/5&7) perhaps that is creating some kind of conflict.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • http://dl.getdropbox.com/u/1095185/smalldave.cap

    here's the cap.

    i hope you can help me

    ps.

    2Lemming: first condition is "not wall to the left(right)" the second condition is "wall to the left(right)".

  • It's happening because they have a wall to the left/right of them.

    Even though the conditions are met for the "Distance less than" "Distance greater than" for the jump action, they have a wall next to them, so they don't jump.

    I've uploaded a cap which I think should be what you're looking to achieve, I've commented on it and have also made comments relating to my earlier post.

    http://www.box.net/shared/v3gnpeital

  • :O wow... you are my hero

    take this tasty cookies as a sign of my respect

    <img src="http://dl.getdropbox.com/u/1095185/coooockies.png">

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