bbjGames's Forum Posts

  • Thanks ^-^ even if it's slow it saves me a lot of hand work

  • How would that work? I mean like if my list is 1,2,3,4,5,6,7,8,9 in sets of 3 I would get something like

    1*2*3 = 6

    4*5*6 = 120

    7*8*9 = 504

    But there is definitely a better combination for that right? Or am I misunderstanding what you're saying

  • That works if it's groups of two but if it's 3 or 4 numbers multiplied together it doesn't work so well

  • Ok, that'll be really helpful thanks I'm still not sure how to get the program to run through every possible combination of the initial values though

  • So I made an array that contains fractions (1/2, 1/3, 2/3, etc) and what I have set up is that the user types in two numbers, the program divides them and subtracts until it's left with only the decimal point, and saves that as a global variable, then the program tries to find a corresponding fractions but I'm encountering rounding issues

    For example if the user types in 100/6 the answer is 0.666666668 but in the array 1/3 is 0.6666666666

    So the program doesn't work because these are two different values because it was round. Is there any way around this?

  • If I have an array and I want to find which combination of number pairs gives me the lowest total how would I do that?

    For example if my array has the values 2,3,5 and 7.

    2*3= 6, 5*7= 35. 35+6 = 41

    2*5= 10, 3*7= 21. 21+10 = 31

    2*7= 14, 3*5= 15. 15+14 = 29

    So for these numbers the best combination of numbers is 2*7 and 3*5

    Does that make sense?

  • Awesome, thank you so much ^-^

  • I was having trouble getting that to function so I made this instead

    For each x

    Array.CurValue != Array.At(Array.CurX+1)

    Array.CurValue != Array.at(Array.CurX-1)

    Action: Delete Array.IndexOf(Array.CurValue) from X axis

    For some reason it's only working like half the time, what am I doing wrong?

  • My array is being generated by an equation that I made (and then sorted from lowest to highest). As of now the array is about 200x1x1

  • So I found a way to delete duplicates of a number from an array but how would I delete the numbers that only appear once and save all of the double, triples, etc?

  • How would I make it so that only the values that appear once are deleted?

  • Thanks!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'm trying to make a neural network and I know I can make a save on my computer that will retain that information but what if I ran the program on a different computer the neural network would have to relearn everything from scratch. How could I make a save accessible from anywhere? I'm assuming I'd have to get a URL for it using bitballon or something

  • That is amazing, thank you

  • Ok and how should I go about making them go after the closest patch of grass? Maybe a loop that picks all the grass in a cows line of sight and finds the closest one then the cow moves towards it?