Author Topic: IfPlayerSpeedEquals Events  (Read 1931 times)

You can use Player.getVelocity to find their velocity (it's 3 numbers though, I'm sure there's a command to average it all together somewhere).


Aloshi, if it's 3 numbers, it's probably a vector.
In which case, you also have to check the direction of the velocity, and then use getWord to pick the number you need.

I'm sure there's a command to average it all together somewhere.
Add the three numbers together

For fall speed, use the third number

pretty simple

I can see this used as a trampoline

ifPlayerSpeedisGreaterThan 3
player AddVelocity 3
ifPlayerSpeedisGreaterThan 6
player AddVelocity 3
ifPlayerSpeedisGreaterThan 9
player AddVelocity 3
ifPlayerSpeedisGreaterThan 12
player AddVelocity 3
ifPlayerSpeedisGreaterThan 15
etcetra

^would use.

This would be very handy. Some one make please.


You can use Player.getVelocity to find their velocity (it's 3 numbers though, I'm sure there's a command to average it all together somewhere).
Indeed there is.
Aloshi, if it's 3 numbers, it's probably a vector.
In which case, you also have to check the direction of the velocity, and then use getWord to pick the number you need.
Bad idea.

Solution: use vectorLen(3p vector);
Ex: vectorLen("1 2 0"); would return 2.23607.

But I don't like the idea of this mod in general.

I just made this, will be included in v4 of variable/conditional events.

I just made this, will be included in v4 of variable/conditional events.
I love you.

You use it like
AXIS LOGIC AMOUNT
onPlayerTouch > Self > ifPlayerSpeed > Z Less 0
VariableTrue > Player > addVelocity > 25
To make a trampoline that you actually need to fall/jump on to bounce.
I also made a bloomba that you jump on to kill :D.
« Last Edit: December 12, 2008, 08:42:25 AM by Destiny/Zack0Wack0 »

 When brick "physics" come out you could make is so that if you hit a brick wall with a certain speed, it collapses.

Aloshi, if it's 3 numbers, it's probably a vector.
In which case, you also have to check the direction of the velocity, and then use getWord to pick the number you need.

Yes, I know that of course...but you'd want to average the speed so people using the event don't get confused (and I don't think most of the BL community really knows what a vector is anyway).

Yes, I know that of course...but you'd want to average the speed so people using the event don't get confused (and I don't think most of the BL community really knows what a vector is anyway).

Physics class, you bet i do.

FallSpeed = Velocity[3]?

No? Third box?

Falling is negative anyway.