how do i make this logic system.....
what i wanna do is if you get a hidden item from level 1 after you can't can't get that item anymore but that would only affect that 1 item in that level and not the others in the other levels, like each hidden item needs a unique variable number that's readable but only using 1 variable name.
then another logic system for the same thing but 5 hidden items per a level
there's 40 levels.
how do i do this?
-
Bit late but I hope this helps you at launch:
What I you could think about is a pseudo-binary system, but I don't think this would scale very well. So you have five items, the first one adds 1 to the variable, the second adds 10, the third adds 100 and so on. So if you have objects 1 and 2, your variable reads 11. If you have 1, 2, and 4, it reads 1011. Then in each level you can check that number and destroy the right items at the start if they match up to a one, using a bit of maths to check each position. But that might not scale to 200 items.
If you don't like algebra it might save you time to give each object its own name as you implement it. World A might have A1, A2, A3 etc. -
'@FlashMedallion hey before the beta ended i tried that using the 1,11,111,1111 and so on it works but that uses a lot of logic and i probably only take it to 11,111 for every 5 levels then make a new variable for the next 5, then each item lets say the first item needs to remove 11,110 away leaving that 1 left saying if the item has been picked up or not if it hasnt then the number will be 0.
whats that about naming items? is there another way other than pseudo binary system?
댓글을 남기려면 로그인하세요.