View previous topic :: View next topic |
Author |
Message |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Thu Dec 31, 2009 5:46 am Post subject: help with spawning |
|
|
Woooo it's almost new year!!! 3 hours to go!!! Happy New Year!!!
A quick question: When spawning, can the spawned enemy spawn exactly in the exact position where the last enemy was destroyed?  _________________ So many ideas, so little focus. Monk spirit please lend me your power!
 |
|
Back to top |
|
 |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Thu Dec 31, 2009 6:10 am Post subject: |
|
|
right this one is a bit tricky, and you have to use a trick :p
make two copies of the same enemy on the formation, then overlap them, delete the second one. The cursor will still be where the thing was but won't register so.
I found that you can't do this easily with multiple enemies, also something else helpful; make an enemy called fullslot, give it no graphics 1 HP and give it the win battle even if alive bitset. fill up all the other possible enemy slots with these. This'll garutee that it'll appear in the slot you want it to, generally you won't need to do this tho. |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Fri Jan 01, 2010 5:07 pm Post subject: |
|
|
you're right it really works for a single enemy but when there are others, the enemies respawn in the same spot. the reason i want to do this is to have an explosion where the enemy was destroyed...
what happens is when enemies are destroyed in different areas the explosions are spawned in the same area which is the slot that overlaps the enemy in the nearest unoccupied slot, and if you destroy them all at the same time, the explosions look pretty neat but only one makes a sound.
i tried using the unoccupied enemy but it only worked like the earlier trick... _________________ So many ideas, so little focus. Monk spirit please lend me your power!
 |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Sat Jan 02, 2010 2:40 pm Post subject: |
|
|
This reminds me that I really want to add an enemy bitset that makes spawn-on-death enemies fill the spawner's slot instead of the first empty slot. |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Sat Jan 02, 2010 8:52 pm Post subject: |
|
|
wow i would really look forward to that, and also, just a suggestion i think it would be neat to have a battle chain condition something that checks the defender's stats just like the option for the attacker... and a bitset that the attack cannot decrease the enemy or the hero's stat less than 1... _________________ So many ideas, so little focus. Monk spirit please lend me your power!
 |
|
Back to top |
|
 |
|