Skip to main content

Search

how do i make this logic system.....

  • FlashMedallion

    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.

  • EternalDarknessz

    '@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?

Please sign in to leave a comment.