GE DEFENDER

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

GE DEFENDER

Postby Gwar » Sat Nov 06, 2010 1:39 am

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)
Attachments
GE_DEFENDER.zip
(1.03 MiB) Downloaded 236 times
GEDEFENDER.jpg
Last edited by Gwar on Sun Nov 14, 2010 4:50 pm, edited 2 times in total.
Gwar
 
Posts: 3
Joined: Sat Nov 06, 2010 1:28 am
Score: 0 Give a positive score

Re: GE DEFENDER

Postby lcl » Fri Nov 12, 2010 3:12 pm

It's good! :D
Just little bug. If alien dies, it still stays on the minimap, and
that way it fills... :lol:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: GE DEFENDER

Postby Gwar » Sun Nov 14, 2010 8:23 am

Was wondering how long it would take someone to notice that... Know a fix for that issue ???
Gwar
 
Posts: 3
Joined: Sat Nov 06, 2010 1:28 am
Score: 0 Give a positive score

Re: GE DEFENDER

Postby skydereign » Sun Nov 14, 2010 8:31 am

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: GE DEFENDER

Postby Gwar » Sun Nov 14, 2010 4:40 pm

Nice fix.. Works perfect. Thank You.
Gwar
 
Posts: 3
Joined: Sat Nov 06, 2010 1:28 am
Score: 0 Give a positive score


Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest