• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Legend of Zelda style blade trap movement trigger

Status
Not open for further replies.
Level 8
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 25
Joined
Mar 29, 2020
Messages
1,466
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