tnewhook's Recent Forum Activity

  • how did you break it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From what I can understand, for the bullet movement, setting speed to 0 or disabling the bullet movement should stop the bullet from moving. I don't know if using a text box or a sprite makes a difference, but I'm using a text box.

    This is what I have so far

    when        X = 1 -> set text box bullet speed to 40

                       -> set bullet angle of motion to 0 degrees

          when textbox X=300 -> set bullet disabled

                             -> set speed=0

    I've tried it with the x=300 text both as a subevent, and on the same level

    when I run it, the textbox moves ok, but it doesn't stop at all.

  • well, I figured out the answer to my own question:

    scirra.com/forum/copy-an-entire-array_topic53153.html

  • For some reason, I can't figure out exactly what format Construct is looking for in order to load an array from Ajax.LastData. I'd like to load a 2 dimensional array, setting the size of the array dynamically.

    1) is there a particular delimiter between cells and/or rows?

    2) is there a way to count the number of columns/rows based on Ajax.LastData?

    Thanks for the help

  • Pode - Again, thanks for this behavior. However, I'm having one problem with it - it doesn't seem to load the image when the game is initially loaded (sometimes) Sometimes it's fine. However, if you refresh the browser, the first image will load properly. If someone could look at it, I'd appreciate it!

    Thanks a ton

    Here's a link to the .capx

    dl.dropbox.com/u/12722403/3dcardModify.0.9.3.noJSON.capx

    and the images (you'll have to change the path to the images on the New Question event sheet, event 2)

    dl.dropbox.com/u/12722403/images.zip

  • Ashley - thanks for the tip! That was the solution :) This is a great program - keep up the great work, and God bless

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

  • 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

tnewhook's avatar

tnewhook

Member since 30 Mar, 2012

None one is following tnewhook yet!

Connect with tnewhook

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies