Page 1 of 1

GE DEFENDER

PostPosted: Sat Nov 06, 2010 1:39 am
by Gwar
A simple example to learn Mini-map.

I was hunting for examples of mini maps and couldn't find any that were basic to learn from.

My donation to the community 8)

Re: GE DEFENDER

PostPosted: Fri Nov 12, 2010 3:12 pm
by lcl
It's good! :D
Just little bug. If alien dies, it still stays on the minimap, and
that way it fills... :lol:

Re: GE DEFENDER

PostPosted: Sun Nov 14, 2010 8:23 am
by Gwar
Was wondering how long it would take someone to notice that... Know a fix for that issue ???

Re: GE DEFENDER

PostPosted: Sun Nov 14, 2010 8:31 am
by skydereign
Well seeing as you are using a global array instead of the actor*s (which would probably be a better method), you would have to set the subs of the array to some xy value not attainable by the actor. Just put aside a x value, in this case -999, and in destroy set it to that value.
alien -> Destroy Actor -> Script Editor
Code: Select all
aliens[me][0]=-999;


And in the canvas actor, check if the aliens[i][0]!=-999, and if so create the dot.

Re: GE DEFENDER

PostPosted: Sun Nov 14, 2010 4:40 pm
by Gwar
Nice fix.. Works perfect. Thank You.