Author Topic: Agile Playertype  (Read 16210 times)

Agile Player
Walljump and wallclimb in MY Blockland? It's more likely than you think.

Description
The Agile Player is like a Parkour player; you can climb up and jump off walls, with simple controls and no clientside code.

How to use it:
Blah blah enable.
To use a wall, you need to be facing it, and very close to it.
Hold in your Jet button.
Jump. If you're facing more up than down, you'll climb up the wall. If you're facing more down than up, you'll jump off the wall.
It's not limited how many times you can climb up a wall, or how many times you can walljump. You can tictac from wall to wall infinitely and climb as high as you want.

It's also datablock extendable; to set it so your datablock can climb, use these three values:
canClimb - Whether or not this datablock can use the wallclimb/walljump functions.
wallJumpVel - the velocity your player jumps off a wall with, horizontally.
wallClimbVel - The velocity your player moves up a wall with, when climbing or jumping.

Enjoy. I hope to see some interesting use for this, although I doubt I will.

Changes in v2:
 - onClimb and setClimbable events. Please note that climbability won't save; you'll have to make it refresh what is not climbable manually.
 - Changed the location that the wall check is made from. Much easier to climb.
 - Added hold; left click while able to climb a wall and you will stay there until you release jet, or left click again (or climb on the wall). Yes, you can use tools while holding.

If you downloaded from the alternate download, please download from here again to reacquire the RTB datafile; I forgot to add it in the alternate version.

Download
Player_Agile.zip (Last Updated: Fri Jan 30, 2009 12:38 am)

Installation
Put Player_Agile.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager
« Last Edit: January 29, 2009, 08:39:30 AM by M »

Sounds totally awesome.


Totally loving awesome.

Not the best I have seen.

Though the updates have cleaned it up alot...
« Last Edit: March 04, 2009, 03:12:07 PM by Haylord »

"mBet" could be replaced with the built-in mClampF, it does the same thing.

Not the best I have seen.
Yes, it could be better. Give me ideas and I'll look into them. :D

How could I make something to make a brick unclimbable, that saves with bricks?
Since I don't want it to require raycasting, only collision.

Also, thanks for positive feedback guys. If you find something wrong speak up.

"mBet" could be replaced with the built-in mClampF, it does the same thing.
Ah, thanks. The functions guide didn't have anything about clamp, so I just threw that in for my use.
« Last Edit: January 26, 2009, 12:40:30 PM by M »

holy stuffforget

making a challenge for this right after school

Idea for improvement. When you left-click, you hold on to the building.

Also: inb4parkourclan

Idea for improvement. When you left-click, you hold on to the building.

Also: inb4parkourclan
I kinda wanted to avoid using leftclick, as that would call onActivate on the brick. I think I could parent over that though.

seconding that inb4
Wait, wasn't there already a PK clan?

If by PK you mean Parkour, then yes.


so does  this mean building walls also?

I kinda wanted to avoid using leftclick, as that would call onActivate on the brick. I think I could parent over that though.

seconding that inb4
Wait, wasn't there already a PK clan?
I would want the onactivate to be called, because you could make it break off.

Bad part: "Click, click click 'HOLY stuff' BEWN 'AHHHHHHHHH'"

this plus grapple rope epic win