goblynn93's Recent Forum Activity

  • Hello! I am wondering if it is possible to render to two pixel spaces at the same time? I would like to create a giant Nintendo DS kind of thing using a touch screen and a standard monitor. The touch screen gives you control over the characters on the regular screen. Single computer, two displays, one touch, one standard, one ap running across both... can I do this?

  • I used CSV2ARRAY plug in to bring in a much easier to write/maintain CSV file... works great.

    Theoretically you could use this to write JSON files for you.

    Create your data array in a spreadsheet.

    Google Docs or Excel or whatever.

    Export to CSV.

    Use CSV2ARRAY to write the CSV file into an array.

    Then use the Array.AsJSON or Array.Download to produce what you need for the JSON file to load.

    I wonder if this makes sense...

  • blackhornet Setup 1 is actually built off a CAPX you helped me with! I had some other help and realized about the Stop Loop but the CAPX you made worked... I'm assuming because it only searched out one value and I have need of multiple. Either way you've saved my day both times!! This is the main thing that's been stopping me from finishing tonight :D That definitely worked by the way. I'm getting proper values all the time now!

  • I can't open your CAPX because you're on a beta or something...

    Are you trying to bring the array into a C2 app? or push it out?

  • I have two arrays, one small one big.

    The user picks a Name from the big array. The system compares that name against the Names in the small array. If the Name is in the small array it returns a value of 1, if its not it returns a value of 2.

    Or at least its supposed to...

    I have set this up two different ways.

    #1 using an Array loop

    #2 using a System.For loop.

    Setup #1 will return a value of 1 only on the -last- X item from the small array. All other items that match do not return a proper value. I've tried both with and without the TriggerOnce sub shown in the image.

    <img src="https://dl.dropboxusercontent.com/u/39000273/First%20Way.png" border="0" />

    Setup #2 will return a value of 1 only on the -first- item from the small array. All other items that match do not return a proper value.

    <img src="https://dl.dropboxusercontent.com/u/39000273/Second%20Way.png" border="0" />

    Example:

    ListA:

    Crazy

    Silly

    Sassy

    ListB:

    Crazy

    Funny

    Silly

    Sassy

    Manly

    Scared

    User selects from ListB:

    Manly - return value 2

    Silly - return value 1

    Scared - return value 2

    Sassy - return value 1

    Currently I can get a value of 1 on Sassy or Crazy but not Silly... any cell between the first and last I can't get a proper value returned!

  • Wow that was just insanely stupid of me... thanks! Solution on that was too simple to help me on the real issue but at least it got me to go back and take a good look at possible stupid mistakes. Thanks again!

  • My "And" statement doesn't seem to be working properly.

    I have two triggers.

    Only Trigger 1 is having any effect.

    Trigger 2 seems to be ignored completely.

    The number should not increase unless BOTH triggers are active.

    CAPX

  • Thanks for catching that! It would have been obvious once I put this through its full test but now I won't have to face-palm later!

  • <img src="https://dl.dropboxusercontent.com/u/39000273/Index2.png" border="0" />

    Fixed!! Thanks a lot for both solutions! My project is working much much better now.

  • Hmmm OK I think I can work that out... makes sense that the Loop Stop is system and has no effect on the array action. Array.StopLoop would be nice!

    Thanks for taking a look!

  • Well that makes perfect sense... and totally fixes that issue... But I can't do the same thing to my other array with text...

    I am getting the last value of A names, not the first...<img src="https://dl.dropboxusercontent.com/u/39000273/Index.png" border="0" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How would I return an IndexOf trying to match only the first value per cell?

    I am hoping to organize like this:

    11

    12

    13

    21

    22

    23

    31

    32

    41

    42

    43

    44

    The first number is the Act, second number the Scene...

    I've been trying to use Left(,) but I can't get it to work.

    To pull Act 2 I've tried:

    left(array.IndexOf(int((2),1))

    doesn't seem right.

    array.IndexOf(left(2),1))

    also doesn't seem to work.

    I know I could bubble-process this but it seems there should be an easier way to write this.

    Currently I am doing this:

    OnTouch:

    array.ForEachX:

         If: left(array.At(array.CurX), 1)) = 1 then StopLoop and DoThis

         If: left(array.At(array.CurX), 1)) = 2 then StopLoop and DoThis

    etc, etc... Maybe this is the best way to do this? Except that its not really working either. I am getting the last value that matches not the first...

goblynn93's avatar

goblynn93

Member since 8 Apr, 2013

None one is following goblynn93 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies