Hi to all.
I'm making some movement function (i call them when i whant the alien in my game move...);now i have some basic movement (like straight direction[easy to code],zig-zag[easy to code,it's basically two straight direction at once :P] but if i want to implement some complex movement (like clockwise move)or some path movement.....what's the best way to do this?
I ear of precalculated table and so on....but i don't figured out how to do it yet :(
Is also difficult to make some sort of line movement like this?(in precalculated path,like i draw a line and they follow that line)
Example:follow this path from O to X
O------------
\ |---------|
\ | |
\ | |
---------- |
|
|
|
|----------------|
|
|
X
Thanks
I'm making some movement function (i call them when i whant the alien in my game move...);now i have some basic movement (like straight direction[easy to code],zig-zag[easy to code,it's basically two straight direction at once :P] but if i want to implement some complex movement (like clockwise move)or some path movement.....what's the best way to do this?
I ear of precalculated table and so on....but i don't figured out how to do it yet :(
Is also difficult to make some sort of line movement like this?(in precalculated path,like i draw a line and they follow that line)
Example:follow this path from O to X
O------------
\ |---------|
\ | |
\ | |
---------- |
|
|
|
|----------------|
|
|
X
Thanks