This is some hard stuff

Status
Not open for further replies.

mkay

M

mkay

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:
 
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 :)
 
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.
Back
Top