• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Legend of Zelda style blade trap movement trigger

Status
Not open for further replies.
Level 7
Joined
Jan 17, 2019
Messages
163
Was hoping to have some spinning blade traps that only move vertically or horizontally like the rook in chess. Anyone know the trick to getting a unit to move in the direction of an angle?
link-dodges-blade-traps.original.jpg
 
Level 21
Joined
Mar 29, 2020
Messages
1,237
do you want them to move on a set path, or with some varying function?

either way shouldn't be too difficult. set points using the angle you want and order them to move to there.

If you don't like that then you can just have them move with some variation of a "knockback system" where the only ways they can move are vertically and horizontally.

if you want them to be player-controlled, then maybe give them a seperate ability to go each seperate direction with a pushback type movement mechanic. and if you want it to work automatically, you can just bump the unit vertically and horizontally (separately) untill it reaches the point it was ordered to go to.
 
Status
Not open for further replies.
Top