Hi all,
I apologize if this is too long <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">. That said, I'll try to get straight to the point: I need to know if there's any way to spawn a specific set of objects that belong to a family, and have it be based off of a variable. For further explaination, please see below <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">.
I'm working on a project inspired by an Android game called MinuteQuest (
). Currently, I have my entire game taking place in a single layout and whenever the player exits on the left or right side of the screen, the player spawns on the other end of the screen and a new set of enemies spawn to give the illusion the player is moving through different screens.
Right now, there are six invisible objects that enemies spawn from. Each time the player enters a new "room", the spawner objects randomly select between things like "Enemy","Item", etc. and spawn that thing. So far, this has been working fine, but I need the enemies to increase in difficulty and change type as the player progresses through each "room". I'm using a global variable called "roomNumber" to measure this that increases/decreases each time the player exits the screen to the right/left respectively.
So, essentially, I need something like this:
Enemy1 can spawn in "rooms" 1, 2 and 3.
Enemy2 can spawn in "rooms" 2, 3 and 4.
Enemy3 can spawn in "rooms" 3, 4 and 5.
...and so on.
Not sure if this will translate well visually, but imagine the [Enemy] represents the range of rooms I would like them to spawn in.
1.2.3.4.5.6.7...
[Enemy1]
[Enemy2]
[Enemy3]
[Enemy4]
[Enemy5] [/code:2k3ygpox]
This is currently what I have:
[img="https://trello-attachments.s3.amazonaws.com/55497989501cd5e8db426309/964x317/005f5e8a05db3b5ec690a1b33954d961/forums1.JPG"]
I've been using Construct 2 (as well as Construct Classic) for some time now. That said, I am extremely visual and have a very hard time wrapping my head around some of the more abstract concepts such as how arrays/dictionaries/hash tables/etc. interact with Construct 2. This also extends to picking families as well. I've looked through many, many posts/tutorials that try to explain this, but it's just not sticking so I'm hoping someone can show me or at least explain how I can apply these concepts to my own project. Rexrainbow's plugins look to be extremely powerful and may be just the thing I need, but they are also very advanced/abstract (to me anyway) and go right over my head.
Hopefully what I'm trying to explain makes sense. I can try to take some screens and I really appreciate anyone taking the time to assist me with this. Just please know if it involves tables and stuff like that, I may need a fair bit of hand holding until I get my legs.
Thanks in advance!