Jump at point

For questions about using Classic.

Post » Sat May 09, 2009 5:11 pm

Hello,

here is my script to make beast jump at player:

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.
B
3
G
4
Posts: 29
Reputation: 1,133

Post » Sat May 09, 2009 10:09 pm

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 :)
B
6
S
2
G
3
Posts: 520
Reputation: 2,690

Post » Sat May 09, 2009 10:11 pm

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

[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
[/quote:298jmu1w]

thats how id do it
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sun May 10, 2009 9:52 am

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

theoretical this script (event 7 and 8) should prevent NPC sticking to the wall...
however, it doesn't work ;(

NPC just face against the wall and do nothing ...
i'll go insane soon with this t_t
B
3
G
4
Posts: 29
Reputation: 1,133

Post » Sun May 10, 2009 1:43 pm

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.
B
2
G
3
Posts: 40
Reputation: 930

Post » Sun May 10, 2009 2:11 pm

[url:20fxyuq4]http://dl.getdropbox.com/u/1095185/smalldave.cap[/url:20fxyuq4]
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)".
B
3
G
4
Posts: 29
Reputation: 1,133

Post » Sun May 10, 2009 8:50 pm

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.

[url:10449lob]http://www.box.net/shared/v3gnpeital[/url:10449lob]
B
2
G
3
Posts: 40
Reputation: 930

Post » Mon May 11, 2009 4:34 am

:O wow... you are my hero ;)
take this tasty cookies as a sign of my respect ;)
B
3
G
4
Posts: 29
Reputation: 1,133


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests