codah's Recent Forum Activity

  • Naturally it takes time to write to disc. Do you have static objects that don't need to be saved (scenery etc.) with the 'don't save' behaviour? Search the official tutorials about saving games. If it continues to take a few seconds you could pop up a 'saving' message.

  • Have a look here, it might help (or get you more confused).

    https://forums.html5dev-software.intel.com/viewtopic.php?f=34&t=7460#p27813

  • Thanks codah, this worked great. Reaaally speeds up writing the animation system

    Glad to hear it

  • Here I got it down from 96 to 37 but there is more that could be done. e.g. use a Family for the sprites, but I don't know if you have the full version. Also I use Functions a lot normally, but I didn't bother here.

    Main things are:

    1. Use arrays. Don't store values directly in your events. Then instead of If x is 1 do this else if x is 2 do that, etc. you can just have one line using x as an index to an array. In my file I've used multiple 1D arrays but you could use a 2D array as well. You could also load the values from JSON but I've just directly coded them on startup.

    2. Look for repeating patterns in your events, and factor out the common stuff (then see point 1)

    3. Use states (e.g 0=idle, 1=running) and act on the states, not directly on the player actions.

  • Construct is also missing basic object alignment commands

    There are basic alignment facilities, similar to Dev studio, Eclipse etc.

  • Codah, thanks, but I already knew that was pretty much what I needed to do. I guess I should clarify I'm asking about the specifics of where in Construct do I find an array to put into an event sheet and then how exactly do I set up the for loop?

    Yes specifics help. People asking the same question can mean very different things.

    Right click on Object Types, choose Add new Object and choose "Array". You can add more than one. You can rename it. It will default to a 'list' length of 10 (i.e. Width of 10) if you look at its properties under Object Types Properties. Now read https://www.scirra.com/manual/108/array. Basically "Array:Set value VAL at POS" will set an item in the list.

    Use Array:For each element to go through the array, comparing CurX with your value. Again, read the above section for details of using For Each. There's no need for me to retype the manual <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> After reading, ask if you have any problems.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • if turns % 5 = 0

  • codah you mean the Grid plugin. While it's useful, it's not providing any visual help on irregular and/or non squared shaped setups. A snapping guide system would be ideal for all intents and purposes, but if pixel perfect alignments are not required then a simple drug & drop guideline system will do just fine.

    oh ok that was the old name. Yeah I know it's minimal but some forum reader might find it useful

    But sure alignment guides would be nice but I'm hanging out for other features before that. All our needs are different but for me, I get by with the existing align by edges (top, left, bottom, right) and spacing horizontal/vertical, etc. (@Ashley please add align by centres.. take you 5 min )

  • Guides would be super helpful! I actually use sprites (shaped as thin lines) on a dedicated layer to build guide systems. Other times I import a full screen picture with the guides already drawn in it and use it as reference.

    I need guides to estimate and keep right proportions in my projects. You know, golden ratios, rule of thirds, fifths etc...

    You could try Cranberry's SquareBoard plugin if you just want visual guides. I assume Rayek you mean 'active' guides that snap sprites to them, like the existing grid does. That would be very helpful. Along with many many features that I can think of, including some that I've requested

  • For the list, learn up on arrays (1D array=list).

    For checking if it's one in the list (array), use a For each loop to compare the animation name that's playing with each array item.

  • 6bruno6 Wow, thanks so much Bruno! BTW, how about IAP with Crosswalk?

    https://www.scirra.com/forum/viewtopic.php?f=146&t=101139&p=842617&hilit=iap+crosswalk#p842617

  • Drag a PNG or JPG file onto a layout.

codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies