Blockland Forums > Modification Help
Make a player move up to the next platform vertically?
<< < (2/2)
otto-san:

--- Quote from: Nitramtj on January 11, 2011, 02:59:17 PM ---Are you talking about AIPlayers?

Also, are you talking about platforms made of bricks. What do you mean by ascend, pushing? Making them walk, or jumping?

--- End quote ---
That's not what I'm talking about at all.
Headcrab Zombie:
Closest thing I could think of is to fire an upward raycast from the player's location, and then get the object that it hits. If the object is a brick, you can do stuff involving positions, vectorAdd, and the height of the brick as defined in the brick's datablock, but for things that don't have a height defined like a brick does, it could be trickier.
otto-san:

--- Quote from: Headcrab Zombie on January 12, 2011, 08:44:45 PM ---Closest thing I could think of is to fire an upward raycast from the player's location, and then get the object that it hits. If the object is a brick, you can do stuff involving positions, vectorAdd, and the height of the brick as defined in the brick's datablock, but for things that don't have a height defined like a brick does, it could be trickier.

--- End quote ---
Dang, I suck at vector stuff and raycasts.

Can you possibly give me an example?
Navigation
Message Index
Previous page

Go to full version