MiniMapCode


import bge
cont=bge.logic.getCurrentController()
own=cont.owner
always=cont.sensors['Always']
always2=cont.sensors['Always1']
if always.positive or 'init' not in own:
   D=30
   if 'init' not in own:
       own['Init']=True
   own['ItemList']=[]
   scene=bge.logic.getCurrentScene()
   for items in scene.objects:
      
       if own.getDistanceTo(items)<D and 'Property' in items:
            own['ItemList']+=[items]


if always2.positive:
    for items in own['ItemList']:
         addObject=scene.addObject("blip",own,5)
         addObject.setParent(own,0,1)
         addObject.worldPosition=own.worldPosition+((items.worldPosition*own.worldOrientation)*.05)

Note this needs work, and is close but not working.

Attachments

MinMapDemo.blend (477 KB)

It’s generally discouraged to post non-functioning resources on this forum, people who look at these threads expect something complete enough to work out of the box (not to mention possibly be applicable to their games).

Also, you continue to post .blend files without much in the way of documentation or even a good description of what it does. This is why you notice few, if any, looking at your threads and using your stuff.

Forgot to update :stuck_out_tongue:

this cycles through all objects, gets the ones that are withing x distance every (user defined) frames,

then places them on a map every(user defined) frames.

It’s quite lean on logic

Attachments

MinMapDemo3 (1).blend (497 KB)

Is this working or not?

If not it belongs to the WIP forum.
If yes you should post a screen shot, that a viewer can see what to expect.

its working I think,

I need to test it in a game,