joaoanhas's Forum Posts

  • Hi!

    I'm having some dificulties in create a 2D array.

    I need something like this:

    Product - Price - Quantity

    ball - 10 - 2

    sword - 3 - 5

    How can i insert this in an array ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have this:

    When i do this all foodicon disable the drag and drop feature.

  • can someone help me ?

  • Thanks Help me a lot.

    Now i have 1 dictionary with this:

    Name-Quantity

    Food-3

    Drink-2

    1 food object (with 2 frames, 2 clones) - instance variables: name, price, foodanimation

    1 text object (2 clones) - instance variables: name

    Seems good ?

    Now i have a problem, i want enable/disable drag drop behavior according have or not this item on inventory, for that i make a for each key over dictionay, and compare the key with the instance variables of food object , but all food object turn disable :S

  • I'm gonna asking here because is related with this.

    In the game i'm developing i'm thinking in have also a store so buy some products, which the best way so save this ?

    Because i gonna have a lot of diferents images with diferences prices, and diferent values.

    I'm thinking use instance variables, but in this case i have to create 1 sprite to each image, to each text with value and shopping cart.

    Here is a example of my store with 2 products:

    thanks

  • Hi guys.

    I have an ideia to make a game like who wants to be a millionaire , but with some diferences, because is for childrens.

    My idea is to have a xml file with a lot of question of diferent types, like True or false, multiple choice, order some words, etc.

    I hope you can help me during this development, some questions:

    • How i can organize my game, 1 layout for every diferent type of question ?
    • Is good choice read whole xml to an array and work with the array?

    Thanks

  • Ok, thanks. I will try with project files to save my xml.

  • Yes, sorry for my question, my intention is made a simple 2D version. I will try with sprites do a simple version.

    Other question: It's possible to read a XML from a file, without call with ajax from a server ? Because i'm doing other game like who wants to be a millionaire and need to store many questions.

  • Hi all!

    It's possible with contruct 2 create a game like pou or talking tom ?

    Thanks