Bennu Game Development

English Forums => Suggestions => Topic started by: MisterN on June 21, 2012, 03:29:12 AM

Title: Get x and y (seperately) distance from one process to another (or more)
Post by: MisterN on June 21, 2012, 03:29:12 AM
Exactly what the title says. That would be a very good thing to have.
Title: Re:Get x and y (seperately) distance from one process to another (or more)
Post by: SplinterGU on June 21, 2012, 01:46:33 PM

#define get_dist_x(pid) get_distx(get_angle(pid),get_dist(pid))
#define get_dist_y(pid) get_disty(get_angle(pid),get_dist(pid))


:P
Title: Re:Get x and y (seperately) distance from one process to another (or more)
Post by: BlackCurtain on June 21, 2012, 04:39:12 PM
I guess what Splinter is trying to say is that we should start thinking twice before making suggestions :P
You can achieve many "custom" functions with the tools you already have at hand.
Title: Re:Get x and y (seperately) distance from one process to another (or more)
Post by: handsource-dyko on June 27, 2012, 11:44:49 AM
Precisely.  ;) I used to think that way too, until I realised that you can make your own (powerfull) functions by using/combining existing ones.
Believe me, when you get more experienced you start to think in creating your own solutions. (It's the C/Unix philosophy, using small functions to create solutions for more complex problems).

Like lego's, just a bunch of simple blocks, but that can be combined in a virtually infinite number of ways to create the most complex structures.
I used to play with lego bricks a lot, it was a by far my favorite toy.