mekonbekon's Recent Forum Activity

  • Hi shushpo

    I put together this tutorial a while back for beginners who are making small games, but it contains some useful general advice:

    https://www.scirra.com/tutorials/5014/d ... ers/page-1

    In addition to that I would recommend the following:

    1) Organise your project folder system to make it easier to manage assets. I use the following "ABCD" folder structure:

      Assets art masters audio masters Builds Code Documents

    Keep archive subfolders so that you can declutter old unused files from your main folders.

    2) Use a naming convention for your assets. My preference is (assetType)_assetName_(indexNo) e.g.:

    spr_enemy_00

    spr_avatar_00

    sfx_shoot_01

    tmp_forest_01

    ...but exactly how you go about this is up to you. The main goal is to make it easy to organise and identify assets.

    3) Learn how to use groups, functions, families, arrays and dictionaries. Whilst seemingly daunting at first, these objects and structures in combination can go a million miles towards improving the efficiency and versatility of your code, and actually aren't that hard to get to grips with once you start playing around with them.

    4) Use the manual, tutorials and forums, preferably in that order, whenever you get stuck. Whilst it can be fun to noodle over a problem you can often waste a lot of time reinventing the wheel; if you can't find a solution and post a question provide as much info as possible - capx/c3p files are always appreciated.

    5) Start small - try not to bite off more than you can chew for your first few games. You'll learn more and progress faster seeing a number of simpler projects through to completion than if you get bogged down creating your magnum opus. Have a look at the example projects that come bundled with C2 and try modifying those into a game - this is a great way to familiarise yourself with many of the different plugins and behaviours that C2 offers.

    There's plenty more I can add on but I reckon that's enough to kick you off - Hope it's useful - <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • istero

    I've updated the capx again to include movement on both axis - if that doesn't work, if you send me a link to the capx I'll take a look at it for you.

    https://www.dropbox.com/s/7in3nja83t3oy ... .capx?dl=0

  • Did you try the updated capx? It's simpler. Also it only scrolls in the Y direction. If you want it to scroll on the X axis as well then you need to add variables for the X position and duplicate the actions, swapping references to X for Y.

  • istero I've updated the capx. I had a hunch that there was a simpler way to do this without using the "scroll-to" behaviour, so I had a hunt around on the forums and came up with this:

    https://www.dropbox.com/s/7in3nja83t3oy ... .capx?dl=0

    Much simpler, just 2 globals and 2 events <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • istero You're welcome

  • istero

    Would something like this work for you?:

    https://www.dropbox.com/s/7in3nja83t3oy ... .capx?dl=0

    I've created an invisible sprite that has the scroll-to behaviour: as you swipe with your finger it moves in the opposite direction to the swipe, moving layer 0; Layer 1 has a parallax of 0,0 so it remains stationary.

    Any objects that you put on layer 1 remain in position, any on layer 0 will scroll.

  • Not sure if this is exactly what you're after, but it will generate a map of hex tiles:

    https://www.dropbox.com/s/5y69dqolh6abq ... .capx?dl=0

    You can specify the total number of tiles and tiles per row in the globals.

  • skrotar updated:

    https://www.dropbox.com/s/mxz4j28nuy36d ... .capx?dl=0

    I added a little bit of deceleration to get the max speed working, so a slighty hacky solution, but barely noticeable when playing - you can probably increase the ship.decel variable (= less damping) even more and it'll still work.

    If I manage to work out a proper solution (which I think involves limiting the vX, vY separately based on max speed) I'll let you know.

  • You're welcome I'm working on the speed clamp at the mo', I'll update you when its done.

  • skrotar

    How about this?:

    https://www.dropbox.com/s/mxz4j28nuy36d ... .capx?dl=0

    Left/Right keys to rotate, Up to accelerate and Space to fire. Word of warning: there's no clamp on the ship's max speed yet, so easy on the gas <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Hi willmonteirofx,

    I've updated the capx again, adding in scrolling for the object layer and locking the hud:

    https://www.dropbox.com/s/vl30jbms1ucpf ... .capx?dl=0

    Instead of creating and destroying the picked object I just set it visible and invisible as needed.

    To keep the picked object on the mouse I set its position to mouse.X("picked"), mouse.Y("picked"), which means that it follows the mouse's position relative to the "picked" layer.

    I added now run the check to avoid spawning objects on the inventory against the inventoryFrame object rather than the inventory objects.

    Lastly, I swapped the names of the animations to their respective colour, rather than "one","two" etc, so that the picked text is less confusing.

    Notice that the both the "picked" and "inventory" layers have parallax 0,0.

mekonbekon's avatar

mekonbekon

Early Adopter

Member since 9 May, 2014

Twitter
mekonbekon has 13 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

19/44
How to earn trophies