John Cutter's Recent Forum Activity

  • I've been running into lots of strange bugs today, and I'm quick to blame C2, but in the end ALL of them have been stupid errors on my part.

    That said, I'm completely stumped by my current problem and I could really use some help. I'm sure I'm just doing something wrong but I have no idea what it might be and I've been working on the problem for HOURS.

    My array has the dimensions 468,3,1 and I'm simply trying to change the first value in the last "column".

    Set value at (card_count,last_column) to my_rnd[/code:362kg8fk]
    
    To make sure I wasn't having an issue with my variables I simplified the code above to:
    
    [code:362kg8fk]Set value at (1,0) to 300[/code:362kg8fk]
    
    I ran my app and watched the array in the debugger. The first value changed to "300", as expected. Then I tried (1,1).  The second value changed.  (1,2) caused the third value to change. But (1,3) has ZERO effect.
    
    In desperation I tried setting the value to str(300), but that didn't work either.
    
    What on earth am I doing wrong?
  • I just downloaded Chrome and checked it out. Looks exactly the same: my app is in the upper left quarter of the screen, and some of my "off-screen" sprites are visible below.

    Probably an issue with iPad Pro's higher resolution?

  • I was *just* getting ready to report the same problem. It's sort of an unfortunate bug because I'm making concept and feature prototypes for the people in my company -- and most of us just got iPad Pro's as company gifts. So while I'd like to think, "Oh, what are the odds that someone looking at my app will be on an iPad Pro?" Probably pretty good.

  • Hey, everybody. Nice to meet you.

    My name is John Cutter. I'm 56 years old and I've been creating games professionally since 1984. I have designed and/or produced over 60 titles, including: "Fairway Solitaire", "Defender of the Crown", "Betrayal at Krondor", "Might and Magic II", and a few more. If you are really curious you can find my design portfolio here: johncutterdesign.com

    I tell people that when it comes to programming I'm a really good designer. So when I want to mockup new game concepts or features at work, or I want to create some simple games at home in my spare time, I turn to tools like "Fusion 2.5", "GameMaker" and now "Construct 2". I've only been using Scirra's product for a few weeks but for the most part I really enjoy it so far!

    I'm sometimes an idiot on the technical stuff so please forgive my stupid questions. But expect a lot of them...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm a professional game designer who likes to make casual games in his spare time. Although I can code a little bit, it's definitely not a strength, so I turn to visual tools like Fusion, Gamemaker and Construct 2. After reading *glowing* reviews of C2 over the last few years I finally purchased a copy and I'm very impressed with it.

    The community here has been great so far but it seems like most of the posts and tutorials I see are from several years ago. When I looked the other day I saw several hundred people browsing the Fusion forums, and only 30 or so in the Scirra forums. Was there once a larger community of developers out there? (Or has the community always been a bit on the small side?) If it used to be bigger was there a mass exodus at some point, or did people just gradually drift away? If the former, what caused people to leave? And where did most of them go?

    Just curious.

    NOTE: After working on my first Construct 2 app for the past week, here are my initial thoughts:

      1. I love the UI. It feels slick and modern. Simple to use and a lot more straightforward than Clickteam's antiquated UI. 2. The graphics editor doesn't have many features. I use dedicated tools for this, so it's not really an issue, but I was a little surprised. 3. I keep accidentally "unhooking" the Programs/Layers/Bookmarks tabs. Then I struggle to get them set up again. Is there a way to lock them? 4. Using C2 is more... complicated... than I expected. With subevents, functions, and other features, and with the way the Event Editor is laid out, it's a bit more like *actual* coding than Fusion. Maybe I just need to spend more time with it. 5. I am struggling a bit with the Event Editor. It's not always intuitive where and how to create subevents, add variables, etc. When I'm writing C or VBA code I sometimes add a blank line to separate one concept from another, but when I try to do that here I get a dialogue box asking me to choose a condition. Probably just need to spend more time with it. 6. My app needs an array, and I have to save data locally. I found the descriptions and tutorials about this VERY confusing, but it turned out to be fairly simple. (Maybe I'm doing something wrong.) 7. With Fusion I frequently ran into problems that I could NEVER understand. Eventually, I'd just try different approaches until I finally got it to work. So far I haven't had that problem with C2. 8. Love, love, love, the debugger. Being able to see the contents of my array, as I tried to manipulate it, was a lifesaver.

    Need to get back to work on my app. If I think of anything else I'll add it. (Or I'll start a new thread.)

  • Here are a couple of ideas *I* use when deciding what game I want to work on next:

    1. Play a lot of games, including games from lesser-known sites. Often I will find a title that has an interesting mechanic, but it's poorly implemented, or there are other features that I don't like. Use that as a starting point for a new game, where you fix the stuff that's wrong and add your own ideas.

    2. Alternately, you can take that same cool mechanic and change the theme/setting/characters. "Angry Birds" is basically just "Crush the Castle" with birds and pigs! (And a lot more personality, of course.)

    3. The physics engine is very powerful, so come up with a simple mechanic and just "play" with it for awhile. That will often suggest new game concepts. For example, one day I got curious if I could use the left and right cursor keys to affect an object's rotation. After I got that working I realized that it was fun to make the object do "flips" once it bounced into the air. That suggested a slew of different game ideas.

  • UPDATE: I wrote some VBA code in Excel to export my spreadsheet into C2's .json format. I made this a Project File and then used "AJAX.LastData" to "LOAD" the file into my array. Works great!

    NEW QUESTIONS:

    I want to make my web app available to my wife and other people in my French class. Ideally, the app will keep track of which words/phrases they get right and wrong so I can make the latter come up more often. I'll also need to add new words/phrases to the list by updating the .json file on the server.

    What would be the best way to do this? Here's what I am currently considering:

    PHRASES ARRAY:

    [id] = Sequential numbering from 1 to the total number of cards. Doesn't change.

    [french] = A French word/phrase

    [english] = The English equivalent

    [score] = This variable is used to determine how often that flashcard appears (based on whether players got it right or wrong)

    LOCALSTORAGE:

    [id]

    [score]

    Then I'll do something like this?

    1. App starts - load Phrases Array from .json file on server

    2. Load LocalStorage

    3. Copy local [score] to array [score] by using the matching [id]

    Then I'll show the Flashcards with the lowest score. If users get a card right then I'll raise the score. If they get a card wrong I'll lower the score.

    If I store my Phrases Array with the [id] first and the [score] last then I should be able to sort the array on the X axis (sort by [id]). Or, Sort the array on the Y axis and then sort it on the X axis (sort by [score]). Right?

  • Using Clickteam's tools I sometimes get unexpected behavior when I try to put too many actions on the same event line. For example, on a Start of Frame event if you try to read data from an array and then use that data there can be issues. So you have to create another Start of Frame event and put the new actions there. Is this a problem in C2, as well?

    I continue to be impressed by Construct 2's features. I was playing around with the debugger this weekend and it's SUPER useful! Very happy with my purchase.

  • Ack! I already tried that and it didn't work, but this time I re-imported the file and everything is working as intended. Thanks Ramones!

  • I'm working on a Flashcard app and earlier today, with some community help, I figured out how to get my French/English dictionary loaded into a properly formatted array. There's only one problem. All the accented characters are showing up as black diamond shapes with question marks in the middle.

    The characters look fine in the .txt file I'm loading with the AJAX object. Is it a problem with the array object? Is this fixable? If not, what are my other options?

  • Thanks for the reply. I was looking at the CSV2Array plugin as I thought it would let me download a CSV and add the data to an Array. But I don't think it works like that; I apparently have to copy my data and paste it into a small field. I have 1000 rows of words and sentences, and I wasn't sure if it would accept that much data. Do you know?

    UPDATE: I just tried to convert my data to .json but the array feature "download json" doesn't do what I thought it did. Back to square one. Maybe my first approach is still the best.

  • I am trying to learn French so I have created an Excel file with about a thousand rows of French words and phrases, along with the English translations. I have exported the file to .csv and it looks like this:

    [ID,French,English]1,Je m'appelle,My name is
    2,Tu t'appelles,Your name is (informal)
    3,Il s'appelle,His name is
    [/code:2lu9b3tr]
    
    How do I get this data into my Array object?  
    
    I added the .CSV to my Project files and I've successfully read it using AJAX.  Should I use a "For" loop and "tokenat" to parse it into the Array (using "Insert")?  It seems like Construct 2 prefers .json files so maybe I should just convert the Excel file to .json and read it into the array that way?
    
    What's the best approach here?  Any thoughts or suggestions will be appreciated!
John Cutter's avatar

John Cutter

Member since 11 Dec, 2015

None one is following John Cutter yet!

Connect with John Cutter