My brain is ticking like a time bomb with this problem

Discussion and feedback on Construct 2

Post » Tue Nov 11, 2014 10:33 am

I have simply allowed physics into my game, yes they work
My head pounding issues however do they taunt me are the following:
- i can set up levels
- i can set up a level select(to some extent)
- i cannot get the player to go forward between maps of levels like worlds(or packaged boxes in cut the rope experiments)
- i cannot get the player to jump between and replay finished and unlocked levels and worlds that have 50 stages unlocked in each one
- there will be 10 worlds and 50 levels in each one in my game
- i don't want to run into a resource overload so i am using 250 objects and 24 sounds and 10 sound tracks in my game(feed the alien pizza)
- yes i can do the main menu and other things by myself such as a timer for stages
- yes i am well aware that this game has been on production for months now but only because of these things i have overlooked as to how i solve these pesky problems
B
8
S
2
Posts: 134
Reputation: 1,001

Post » Tue Nov 11, 2014 3:34 pm

You want to track stages in a level won?

Global Variables.

World01StageCompleted = 0

0 = none.
1 = 1st stage won.
2 = 2nd stage won.
etc. til whatever stage # you need.

Then check it when you are doing your level select/world map.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Tue Nov 11, 2014 8:42 pm

Take it from someone who has ended up with too many globals before: the best way to do this if you have over, say, 25 levels, is to use a global dictionary object ("LevelProgress"). Then, just add keys ("Lvl1,Lvl2") and check for their state when needed.

This way, it's easy to manage non-linear progress too (like an Angry Birds game, where you might have beat level 7, but not necessarily beat level 5 or 6).
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,202

Post » Tue Nov 11, 2014 9:52 pm

I am using a global array to save game progress, with y = 0 to save the score on each level when completed (the sum gives the total score) and y = 1+ to save any other data that might be of relevance. The dictionary object is very good as well but requires a bit more thought (than I'm prepared / able to give) when setting up your logic (I guess - not used for this yet).

Edit to add that 500 layouts / game areas is quite ambitious... IMO (I hope you can get it to work - it sounds like a great epic, though!).
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,283
Reputation: 47,550

Post » Wed Nov 12, 2014 2:24 am

so what i am trying to do here is skip between levels 1 and 3 instead of going to the previous level or the next level in the level selection screen... Provided all three are unlocked and it doesn't matter in which order or what order the player wants to go to another level it could be from 1 to 3 or 3 to 1. It could even be 1 to 2 or 3 to 2.
it could even be 2 to 1 if the player so desires.
B
8
S
2
Posts: 134
Reputation: 1,001

Post » Fri Nov 14, 2014 10:11 am

Ok so I use cases, anyone here like to give me a .capx file on cases I will even put your name in the credits, when I sell my game...
Also to sweeten the deal only those who are on the credits and found a solution to my problem will get half of the sales profits for every sale, note the game is valued at $4 so you get $2 and I get $2 from each sale...
Edit: I guess if none of you want to help I can solve this on my own and reap all 100% of the profits and gain all cash from the game being sold.
B
8
S
2
Posts: 134
Reputation: 1,001


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 0 guests