Mollekopp's Recent Forum Activity

  • OMG. You guys rock! I know that my code was very ugly.

    I am not a programmer (as you can see) but actually work as an illustrator. I already thought that this is so very cumbersome, but better ugly code than no code :D

    I'll have a deeper look at later.

    But for now: Thank you, thank you, thank you!

  • Here is the core of my problem:

    "Find equal values in two arrays"

    array_01: 1,2,5,10

    array_02: 3,5,6

    How can I do that?

    Can you please help?

  • Thank you dupuqub.

    You are right!

    Breaking the problem down into its component parts should help in any case. I always find myself working around the actual problem. I will keep at it. I just hate it when I don't get anywhere fast enough.

  • Here is what I got so far...

    https://www.dropbox.com/s/lrl3ykr6vh1z6m8/shuffle_Cards_02.c3p?dl=0

    Maybe you get an idea of the game...

    Its a game about learning the basics of multiplication.

    1x1, 2x1, 3x1, 4x1 ... (1,2,3,4...)

    1x2, 2x2, 3x2, 4x2 ... (2,4,6,8...)

    1x3, 2x3, 3x3, 4x3 ... (3,6,9,12...)

    As you can see.. Some Numbers are in several rows...

    What do you think? Is working with array easier than working with variables?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am to dumb. It´s sad to say but I can´t get things running.

    Maybe I should give up and try something less complicated :-/

    Sorry. Maybe my mood will be better tomorow, but today I am very frustrated, because its very logic and easy to explain, but I can´t get it. Maybe I should switch and work with variables.

    Don´t know.

  • Thank you for the quick reply.

    I want to check if at least 1 value matches on two cards. So I have to compare all values of array_1 with all values of array_2. If at least one value is identical in both arrays, the cards may be placed on top of each other.

    Array.At(X) doesn't seem to be the right command to read all values of an array, does it?

  • Hello everyone. I am currently working on a card game. The game has 42 different (unique) cards. The cards can have up to 4 different values.

    I have now created a separate array for each card with 1-4 elements.

    The idea is, similar to a Uno card game, that the player can put certain cards only on other cards.

    Example:

    Card 1 = 1,2,4,6

    Card 2 = 3,6,9

    Card 3 = 5

    Card 1 and 2 are compatible, card 3 can neither be placed on card 1 nor on card 2.

    I would now like to compare the arrays with each other.

    What is the best way to do this? Do you have any ideas?

    Translated with deepl.com/Translator (free version)

Mollekopp's avatar

Mollekopp

Member since 21 Dec, 2017

None one is following Mollekopp yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies