|
Post by tbird on Jun 6, 2019 11:11:21 GMT -6
n00b is it possible to have multiple stacks? That would be really useful. If it isn't available, could it be implemented?
|
|
|
Post by n00b on Jun 6, 2019 12:41:10 GMT -6
I can look at how much it would take. I haven't had a whole lot of time to work on a new version lately. What specifically are you trying to do. I can probably suggest a few work arounds in the mean time.
|
|
|
Post by tbird on Jun 6, 2019 14:22:22 GMT -6
I was just going to re-do my system for image slots to the same way I do my scene id's. I like the ease of use of the stack and re using "id's" if an entity gets deleted so I can use the deleted slot....it's not a huge deal was just curious.
|
|
|
Post by n00b on Jun 6, 2019 17:59:46 GMT -6
In my engine, I just a flag for actors called IN_USE. Its set true when an actor is loaded and false once an actor is removed. The LoadActor() function loops through the actors to find the first one where IN_USE is false and loads the actors data in that slot.
And you can make that dynamically expand the number of available actors with the complexity of your scene with ReDim.
Let me know if that doesn't make sense and I can try to explain a bit better.
|
|
|
Post by tbird on Jun 6, 2019 18:58:33 GMT -6
Yes, right now, I do something similar, I just really like the simplicity of the stack and how efficient it is as you will never need to check if a entity or actor is active or loaded as that slot number will never come up(an unused one).....but I am probably being overly critical for no reason...another OCD moment for me lol, so you answered my question in full, I will stop looking at it as an issue, and move on.
|
|
|
Post by n00b on Jun 6, 2019 19:47:36 GMT -6
I will look into it when I get a chance but I have a lot going on right now so I have spent maybe an hour a week actually doing any hobby coding. I have been working on the same game for over a year now and I am only on the second level.
|
|
|
Post by tbird on Jun 6, 2019 21:14:31 GMT -6
No worries, like I said it's probably something that in the long run will have almost zero impact on performance I was just being picky.
Cant wait to play your game!
|
|
|
Post by tbird on Jun 23, 2019 16:11:42 GMT -6
Thank you n00b, good update.
|
|