tnewhook's Forum Posts

  • I don't think I really understand how the "repeat" loop works. The idea is simple enough, but when it comes to practice, it doesn't work like I think it should. For example, if I put a "repeat" as a sub event, it doesn't seem to end. A sample capx is at: dl.dropbox.com/u/12722403/arrayProblem.capx

    Thanks for the help

  • kittiewan - ya, I figured that out about the tries variable. BTW, your Memory Match Tutorial is great! :)

  • kittiewan - As I'm looking at the code again, I had one question: In step 3, you have a test to see if the array already contains that random number. If the test fails, how does the program know how to handle it? Does it simply retry until it can pass the test. I'm not sure how the statement inside is the loop is handled logically.

    Thanks again for your help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I'm editing an event sheet, I can't clone an array. The error is: "Cannot find a layout to put nonworld instance on while cloning"

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    Cannot find a layout to place nonworld instance on when cloning

    Condition: layout != NULL

    File: Projects\ObjectType.cpp

    Line: 530

    Function: class std::unique_ptr<class ObjectType,struct std::default_delete<class ObjectType> > __thiscall ObjectType::Clone(void) const

    Build: release 87 (32-bit) checked

    Component: Construct 2 IDE

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

  • Thanks guys (and girls) - I really appreciate it.

    kittiewan - that was just what I needed - much more elegant than my solution. I didn't know I could compare a variable to all elements in an array.

    daveryaaziem - I've seen that plugin, but I can't modify the size of the array at runtime. Thanks, tho :)

  • I'm trying to create an array with one particular element, and 3 other random elements. There's some checking for duplicates that I'm not doing right, but I haven't been able to debug it. If you refresh the page enough times, some elements will be duplicates. Any suggestions on making this process faster, shorter, better algorithm, etc. would also be appreciated. Thanks in advance, and God bless

    http://db.tt/aF4lluvw

  • BTW, thanks for the plugin...It's a big help! God bless :)

  • Is there a way to put base64 text in the sprite (or text at all :P)

  • Thanks for all your work! Great plugin! God bless :)

  • Great plugin! Thanks for all your work :) God bless

  • For some reason, I don't see "load from URL" in the actions for a sprite (I put it in the "plugin" folder)

    ]

  • Yann - I need to do the same thing, but am not sure exactly how to use the canvas plugin to do it!

    Thanks for your help

  • How do I put unicode in a table (and how do I tell Construct 2 that it's unicode, and not a string?

  • I agree! I know I've done a lot of work that I intend to reuse in the future. It would be great if someone else could use it, too. The current way to do it is through sharing capx files(at least for Construct 2), which I think works well enough. The difficult part is in making it searchable. Maybe a subforum?

  • Thanks for all your work - to R0J0hound, and everyone else who has helped with input, etc. I was wondering if there was a way to control the time - to let the user watch the line being drawn on the screen.