• 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.

This is some hard stuff

Status
Not open for further replies.
Level 1
Joined
Mar 20, 2009
Messages
1
Alright, I have a question

So basically im moving this unit with X and Y speeds.
Move unit to position of unit offset by X and Y
X would be X speed and Y would be Y speed

if the speed of x is negative, it goes left, understand?

now that you know that, heres my question
When this unit runs into a wall, how do i get it to bounce?

I spent like 2 hours thinking, my brain died....
angles to x y forces.... wtf.... brain dead

help me plz :sad:
 
Level 9
Joined
Dec 4, 2007
Messages
562
umm coud you like make the walls another terrain type and then when a units enters the terrain type you coud instead of making the unit go X make the unit go Y because then it will go the opposite direction?

I dont know man :p, this is waay to complicated :)
 
Level 4
Joined
Jan 24, 2009
Messages
124
ITS HARD STUFF :
Create regions for all walls
+ a unit enters Firstwall<gen> <----1ST WALL
a unit enters Second wall<gen> <----2nd WALL
ETC.
and then move the triggering unit to a random point in ofset of that region
REALLY HARD(Knock back style)
 
Status
Not open for further replies.
Top