goblynn93's Forum Posts

  • Would love to see some simple built in examples/samples of AJAX in action...

    WebStorage might be nice as well...

  • I'll make that request before I even download your capx :) Thanks again, I really do get a lot more from the tutorials and built in examples and sample capx files than I do from the manual! Its the community support that C2 enjoys that makes it what it is!

  • I can't find anything in the manual or tutorials on how or where the arrayName.Asjson is saved.

    Saving the array so I can access the data later is really the most important part...

  • I did... The manual to me is mostly useless. I can't translate the high level vague overview of the manual into anything practical. I need examples and working code to look at to understand why it works.

    The manual assumes a certain level of pre-understanding and I don't have it. I am smart enough to figure out how stuff works if I see it in action and I can even adapt things I've seen working and use bits and parts to make new things...

    but I am not good enough or smart enough to read the manual and take off running. This is definitely way outside my comfort zone and you'd probably laugh at my project and how long its taken me to get to the point I am at! Months... literally... and all I am doing is displaying some random text on a screen...

    Thanks for the response though... like every other road block I've hit in Construct 2 the answer is probably a lot more simple than my brain is making it. The answer is probably right in front of my face and I can't see it because I am over complicating this.

  • Hey rex! I was wondering if you still have the "AJAX to CSV.capx" file that you shared with someone else? I am having issues working with AJAX to load my CSV string and I am betting that CAPX file would answer a whole ton of questions I have...

    Also, is either CSV or CSV2ARRAY able to do a true export?I am hoping to get a file that I can quickly identify and make offline edits and then load back in...

    Thanks!!

  • You can do this without using Webstorage? Where is the JSON written so I can look at it outside the app? I've been using Webstorage to save the array between sessions but I haven't been able to find where its stored...

    I am slightly confused now because I thought you had to use Webstorage or an AJAX/PHP call to write files and save stuff. If I can write a JSON file directly to a local file without WebStorage and access that file outside my app then I will at least have the array.AsJSON that I can work with. Its better than nothing!

    I just found the CSV plugin from rexrainbow... I think this will give me the tools I am looking for although I have not attempted to use it yet.

    Thanks for the reply!

  • I was hoping to get a copy of rexrainbow's capx file for this... the dropbox file appears to be gone...

    It would probably answer a lot of questions I have with AJAX!

    Thanks!

  • Is it possible to export array data into a text file or something?

    I have a very large array that I would like to be able to reload every time the app is restarted as well as back up in case something changes or the project itself morphs into something else I still have the data the array collected over time. WebStorage doesn't seem like the appropriate solution...

    This is a very closed project, no internet, no online, no public distribution, it is a private one time use only.

  • I need to go slap myself it was staring me in the face and I couldn't see it ...

    Thanks!! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I have a simple project I am working on that is basically a sign in book for an event. I have built a system that accepts names and enters each name into an array. I would like to alphabetize the names in no fancy manner. Simply Abraham Lincoln comes before Benjamin Fowler but after Abe Lynn. This would give me a lot more control over the display of the names after they are all entered.

    Is this possible?

  • Hello! My name is Brian and I am a Construct-aholic.

    I had no plans to program games or even look at programming games until I found Construct 2 on Steam. After a few days with the free version I went ahead and bought the personal. If my first project works out I may have to buy the professional version very quickly! Its not a game... but who says you have to use Construct 2 to make games?!

  • dl.dropboxusercontent.com/u/39000273/Why%20Do%20Objects%20Pass%20Through%20Others.capx

    When the ends of the "runway" are clear more runners are spawned. Runners that push to the edge are destroyed.

    If you move a runner too fast he will swap places with another runner. This is not good.

    The runners sort of squish up on top of each other instead of acting truly "solid". This is not good.

    I would like my "runners" to act like boxes on a track. Grab one box and push it and it pushes the other boxes. Pushing a box too fast won't allow it to pass through the box its against!

    How do I make the boxes follow each other?

  • Interesting... I see where you're going with this and I like it, I can do this. Thanks, that was a huge help. And simple... C2 makes some things almost too easy that you miss them in front of your face! I am still going to look into the other method as well because I like learning. Thanks again!

  • Yes they are all sequentially named during the output. The images I will get will also be sequentially named and if they are not I will rename them. How do I avoid the Ajax and Php?

    I am still going to educate myself on Ajax and Php over the next few days but as I am very new to Construct and modern programming in general ... the last language I actually programmed in was COBOL.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Unfortunately I know nothing of Ajax or PhP but I'm a quick learner...

    Yes I actually created 150,003 unique images for testing my project. The final images will be supplied by someone else.

    I used After Effects. Created a "video" that was 100 x 100 pixels and added a Timecode effect. Video timecode tracks every single frame with a unique number. I set the timecode effect to display units as frame count instead of Hours Minutes Seconds Frames and it counts from 0-50,000 one number per frame. I output the "video" from After Effects as a .PNG sequence, one image per frame. Now I have 50,001 images. I tinted the timecode 3 different colors to match the colors I'm using to debug and I ended up with 150,003 images. The whole process took about three hours of me playing Injustice while it cranked away.

    Bonus: All my emitted images are sequential numbers so its easy to know if things are really working well. I can tell right away if my randomizers are working or not, or if I am losing things someplace with skipped numbers, etc.

    I guess I know what I'm doing during down time at work tomorrow... reading up on Ajax and php!!

    Thanks for pointing me in the direction.