goblynn93's Forum Posts

  • 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" />

  • 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...

  • Wow... Thanks very much... my solution was incredibly more complex. And it didn't work! I like the Stop Loop. I had not seen that before and as my array is huge that will save some time.

  • How do I compare a value against a whole array?

    if Variable = (any value on X axis of Array) then output A

    else output B

  • My low power GPU is i7 integrated HD 3000... interesting.

  • I am having the same issue built in a totally different way!

    I even tried putting in a "pick nearest without picking self" to try and get Pin to work...

    How do you Pin on spawn??

    By the description Pin: Bar Style should do exactly what we both need but I can't get it to work!

    CAPX

    CAPX - With Pin Select Nearest

    CAPX using Wrap and Pin

  • I've put 10,000 animation frames into one sprite.

    My program ran just fine...

    The big problem is that Construct 2 makes "thumbnails" when dealing with Animation Frames and it refreshes those thumbnails quite often while working with your Animation Frames and at 10,000 frames that process was VERY slow.

    My .PNG images were 300x70 pixels.

  • rexrainbow

    could CSV2ARRAY be doing something that would cause an odd Sort X issue?

    I import my CSV into my Array from an external file and when I sort the files the first item in the list does not sort properly.

    I am hoping to just get a very simple 2d array from a CSV but it seems like something is happening where the first item is treated as a Row Name, or a label or something and not just a regular cell like the others...

    This list:

    A

    X

    T

    G

    P

    V

    Sort X gives this:

    G

    P

    T

    V

    X

    A

    but "A" should be first in line...

  • You are so correct!

    Helps to scroll down past the How Do I forum sometimes!

  • Can I extend the Scirra Forums Session Timer? It seems to be ridiculously short...

    I don't even have enough time to type out a whole post before the website cuts me off from being able to post. "Warning: Session Timer Expired!"

    I have to copy/paste almost every post I make into a refreshed web page because I can't think and type fast enough to beat the timer!

  • Save your project to a Folder not as a Single File (CAPROJ not CAPX).

    Open the folder where you just saved.

    Open Animations Folder.

    Your sprite should be listed in a folder named the same as the sprite in C2.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Posting a CAPX usually gets you an answer faster...

    Without seeing what you're doing I can think of two possible routes:

    Use Physics and Solids to keep the enemies in their own space

    or

    Use IsOverlapping to detect enemies about to occupy the same space and stop or slow their movement.

    You will probably have to post a CAPX before anyone can give you better or more accurate advice.

  • For some reason my Sort X is not working as expected...

    The first item in my CSV file seems to be ignored by Sort X and placed at the very end of my array...

    Preview works great, Node-WebKit export not so much...

    *Edit - posted a better CAPX, but still not working as expected on export*

    CAPX

    dl.dropboxusercontent.com/u/39000273/CleanTest.capx

    Files

    db.tt/4EdJO2Sd

    db.tt/nryTn4RV

  • You should go to YouTube and search "Construct 2 parallax" and have a watch... its an awesome feature that's easy to implement.