Posted By
|
Message
|
Lazernaut
Registered 08/09/2002
Points 1103
|
4th June, 2004 at 10:04:15 -
I'm trying to create a minimap in a game, and it's going somewhat ok, there are a few problems though:
(1) --------------------------------
I tried having a 3x3 pixel object for indicating enemies. At the start of the level I would make an active object have its A value set to the amount of enemies present, and then create this amount indicators.
I would then spread value 1 through all enemy objects (the enemies themselves, not the indicators), and also spread it through the indicators.
Then i'd go like:
+ if value M ('object') = value M ('group.enemies')
- set posX ('object') = posX ('group.enemies') + posX ('minimap bg') / 8
- set posY ('object') = posy ('group.enemies') + posX ('minimap bg') / 8
this isn't very precise, but i got it so it would work on 1 enemy, but multiple enemies would make it so still only 1 enemy would be shown on the map (and i tested to see if the objects had different M values).
(2) --------------------------------
I tried finding an example on clickteam's forums and stumpled upon Tig's minimap object, which i found out was really easy to use. The problem with this is and no matter how many enemies i tell it to show, it always shows the number of enemies, except 1, on the map...
(½) --------------------------------
When my enemies walk to far away from the screen they fall down, and through everything. How do i prevent them from doing this ?
n/a
|
Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
4th June, 2004 at 10:11:49 -
2) Are you sure you were using it right? Had you set the minimap proportions correctly? And always - clear and plot objects?
½) In frame properties, try ticking 'Handle background collisions even in invisible playfield'.
- Tigerworks
|
Lazernaut
Registered 08/09/2002
Points 1103
|
4th June, 2004 at 10:26:09 -
2) i now know for a fact i wasn't using it right..at first i had it so every 5 milisecs, it would plot, then clear..then seconds before reading your reply i did it some other that made the correct number of objects show, but they would flash on the map...
½) hmm, at first that worked, but after running the game a couple of times, they kept on falling down..
n/a
|
|
|