Filling Enemy ID Gaps (FastLoop Problem)
I am having an issue with getting enemies ordered correctly, it's not so much that I'm having a problem getting it done. It's that I am having a problem with MMF2 crashing when I try to do it!
The math is set up correctly, the fast loops should be working correctly, so what the heck is going on here? There is absolutely no reason for MMF to be crashing like this!
Please help me! I have the source file to my exact problem, right here:
http://arcanetale.sitesled.com/OrderingEnemy.mfa
Create some "enemies", each enemy will have it's own ID value.
When you try to delete the enemy (right click), what it should be doing, is deleting that enemy, then moving all the ID's for the enemies above it, down 1. This way it fills in the gap! Instead, it just crashes, or freezes! Please help me, I have tried everything, and come near seconds from busting my keyboard. This is really starting to tick me off, as this is an extremely important part of my game, and I need to have it working correctly!
It would be a huge relief if someone was to point out something I am doing wrong here, because the last thing I am worried about, is having a problem swallowing my own pride. As long as I can get this working, I will have no problem admitting to any mistakes I have made, in trying to work this out. Please, I just really would like to get this working!
Re: Filling Enemy ID Gaps (FastLoop Problem)
Fixed it. I have absolutely no idea what you were doing, but you can use the 'spread value' action to assign a different value to every instance of an object. The problem with that is the object that was place first gets the highest number, so the id's are not retained. I fixed that by inserting 'set idvalue to number of enemies - id value - 1' after I spreaded the value.
I've made an example for you.