I'm blocked

  • News questions are:

    How avoid the "undefined value" error when try to read one array position?

    How find into an array for a value and replace it? I found "TheindexOf" and "TheValueOf"

    I guess that if the search value work fine is better than the use of repeat.

    Thoughts?

    Salut,

    Josep M

    1) This is because you are adding extra elements to an array. So the blanks are undefined.

    2) Load your data into array, then you use theseto manipulate the data as per usual. Have a look at this - Very good tut. Download the animalscomplete.capx and go through it. Handles everything you will need.

    Will have a look at your screenshots etc when I get some time. This week is crazy

    Edit: Don't use buttons, they don't work or give you grey hairs (for tablets) or textboxes either.

    Use sprite as button. And spritefont. (better for design, better for game)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi DUTOIT,

    Yes, the button is only for testing the calls to functions on this prototype. Thanks for your advice.

    Edit: To use the "IndexOf" for the X only in 2D array or 3D array? is posible or search for the entire array?

    Salut,

    Josep M

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)