[How do I]Frequently asked questions

Get help using Construct 2

Post » Thu Oct 20, 2011 1:02 pm

This is a gathering of the common questions asked and their answers in this section.

Be sure also to check Construct 2's online manual and especialy the must read for beginners and pros alike : how events work

You can also find a lot of information in the tutorials.
You can also have a look at the list of third-part plugins/behaviors to find new tools to add to Construct2.



  • Game type/mechanics specific questions/examples

    • Tile "digging" type game - LINK
    • Card game - LINK
    • Several RTS mechanics (camera movement, selecting units, etc...) - LINK
    • Example of Line of sight 1 - LINK
    • Example of Line of sight 2 - LINK
    • Do a contextual menu in events - LINK
    • Make a "tactile" keyboard - LINK
    • Making a "Pause" function - LINK
    • Make a checkpoint system - LINK
    • Countdown example - LINK
    • Example of level editor (basic, WIP) - LINK
    • Random Terrain generation via Midpoint Displacement - LINK
    • End-level animation - LINK
    • ThumbStick example (mouse and touch) - LINK
    • 3D carrousel example - LINK
    • Compagnon that follows the player - LINK
    • Make a twitter widget - LINK
    • Trail effect - LINK
    • Drag and drop via events - LINK
    • Simon type of game - LINK
    • Side-scrolling motorbike physics - LINK
    • Drag and drop with no offset - LINK
    • Ragdoll example - LINK
    • Example of realistic rope - LINK
    • Timeline example - LINK
    • Check that an object is within an angle of another - LINK
    • Use more collision points or more objects ? - LINK
    • Procedurally create platforms - LINK
    • Example of teleportation portal - LINK
    • Tower defense-like turrets - LINK
    • Make a angry-bird clone - LINK
    • Make a quizz game - LINK
    • Game for multiple resolutions solid example - LINK
    • Flashlight type effect on an image - LINK
    • Resize handles on a sprite example - LINK
    • Implementations of a rubik's cube (with/without pseudo 3D) - LINK
    • Complex AI, dynamic aim range - LINK
    • Sprites overlapping completely each other - LINK
    • Turn-based mechanisms - LINK
    • Make a dropdown list - LINK
    • Magic/mana recharge (like in WOW) - LINK
    • Game dialog: Scenes and actions - LINK
    • Day to night cycle - LINK
    • Boids algorithm implementation in C2 - LINK
    • Ghost replays " la" Super MeatBoy - LINK
    • Trajectory prediction - parabola - archery - aim la Angry Birds - LINK


    • Sidescroller/Platformer genre

      • Climbing a rope - LINK
      • Vertical Scrolling platform game, starting from bottom - LINK
      • Get killed if you fall from a high distance - LINK
      • Mario style: jump on top of ennemy to kill it - LINK
      • Jumping through blocks and standing on top of them (mario like) - LINK
      • Climbing a ladder - LINK
      • Grabing the edges of a platform/wall - LINK
      • Another grabing edge example - LINK
      • Hookshot with the mouse - LINK
      • Get character to shoot right and left - LINK
      • Another example of climbing a ladder - LINK
      • Varied power of jump - LINK
      • Time maped directional spawning - LINK
      • Platformer: particles for snow, rain and fire effect - LINK
      • Jumping on vertical moving platforms - LINK
      • Another example of enemies patrol - LINK
      • Water/liquid modifying the movement - LINK
      • A "sandbox" example in Scirra's arcade with downloadable capx - LINK
      • Another patroling example - LINK
      • Drawing platforms ingame - LINK
      • More below in Behavior/Platformer behavior


    • RPG genre

      • Display health/healthmax in a text - LINK
      • Diablo-like movement (mouse+animations) - LINK
      • Visual Novel/Dialogues example - LINK
      • A dialog system with answers - LINK
      • Simple inventory mechanic for a click and play - LINK
      • Another drag-drop inventory example - LINK
      • Even more dialog systems - LINK
      • A miniRPG example using array - LINK


    • Object moving

      • Mouse click movement : LINK
      • Patrolling and shooting ennemy - LINK
      • Bouncing ball from a wall - LINK
      • Tile/Grid movement - LINK
      • Make a tank - LINK
      • Sprite push another sprite - LINK
      • Firing a laser - LINK
      • Make an object rotate around another via events - LINK
      • Another lazer example in 2 events - LINK
      • Smooth grid movement example - LINK
      • Homing missile - LINK
      • Handle predictive aim (shoot a bullet in front of a moving object) - LINK
      • Simple animation without using the animation feature of the Sprite object - LINK
      • Basic waypoint system - LINK


    • Isometric

      • Isometric projections - LINK
      • Isometric projection - LINK
      • Isometric playfield - LINK
      • Isometric racing game - LINK


    • Multiplayer/Networking

      • Set a websocket server compatible with C2 - LINK
      • Make a MMO with C2 - LINK
      • Add leaderboards with a custom plugin - LINK
      • Yet another multiplayer demo (with explainations) - LINK
      • [Behavior] MultiPlayer + online demo - LINK


    • Monetizing

      • Using paypal or other payment process - LINK
      • Ways to monetize HTML5 games in August 2012 - LINK



  • General/Misc questions

    • Native expressions in Construct 2 - LINK
    • Modify the loader screen of the exported application - LINK
    • Change the color of the loading bar - LINK
    • Let others play your game - LINK
    • User text (before TextBox) - LINK
    • User text (since TextBox) - LINK
    • Draw a line from point A to point B - LINK
    • Reset Construct2 Preferences - LINK
    • Managing several behaviours/states for a character - LINK
    • Make HTTP preview mode working on win7 - LINK
    • Explanation about the logical "IF", "ELSE IF", "OR"... - LINK
    • Explanation of lerp - LINK
    • Even more clarification of LERP - LINK
    • Wrapping an exported project into .exe - LINK
    • Xperia Play controls - LINK
    • Create 3D sprites and using them in Construct 2 - LINK
    • Checking the distance between two instances - LINK
    • Weighted probabilities - LINK
    • How many A overlap B - LINK
    • Pass informations from the HTML page to the C2 application - LINK
    • Blur text effect with SVGCanvas plugin - LINK
    • If, else if - LINK
    • International keyboard support - LINK
    • Mathematics in game making - LINK
    • Understand the picking of newly created/spawn instances since R101 - LINK
    • Scope of events and object picking on creation - LINK
    • Best programming practices in C2 - LINK
    • The best way to do backgrounds in C2 - LINK
    • Tileable water with refraction - LINK


  • Legal questions

    • Intellectual property rights - LINK



  • Interface

    • Find the sprite strip dialog - LINK
    • Make configurable sliders - LINK
    • The X dialog has disappeared - LINK


  • Picking/selecting instance(s)

    • Picking as executed by C2 - LINK

    • Selecting/Picking the correct UID - LINK
    • Picking just spawned instances - LINK
    • RTS like - Selecting units - LINK
    • Picking separate instances from a same object - LINK
    • About picking - LINK
    • Understand how to use instance variables to pick specific objects - LINK
    • Even more about picking with UID and IID - LINK
    • Object(index) and "Pick Nth instance" usage - LINK
    • Understand the picking of newly created/spawn instances since R101 - LINK
    • Reference both overlapping sprites when they are the same sprite type - LINK



  • Layout

    • How do I import layouts from other c2 project? - LINK
    • Duplicate a layer (r63) - LINK
    • Reseting the game for a restart - LINK
    • Making a title/menu screen - LINK
    • Fading in/out between layouts - LINK
    • Navigation through layouts/levels (single event sheet) - LINK
    • Navigation through layout (with demo capx) - LINK


  • Variables (Local/Global/Instances)

    • Using local variables - LINK
    • More about local variables - LINK
    • Using global variables - LINK



  • Scrolling / Camera

    • TiledBackground horizontal scrolling - LINK
    • TiledBackground vertical scrolling - LINK
    • Slow vertical scrolling - LINK
    • Sprite horizontal scrolling - LINK
    • Click and drag the camera - LINK
    • Metal Slug/Mario type of scrolling - LINK
    • Zoom in/out - LINK
    • Camera smooth zoom in/out - LINK
    • Delayed/controlable camera - LINK
    • Example of scroll, scale and parallax - LINK
    • Moving the camera with keyboard - LINK
    • More parallax example - LINK
    • Flip camera/world - LINK
    • Example of pan with mouse - LINK
    • Another example of vertical scrolling with tiled backgrounds - LINK
    • Another continuous scrolling made out of sprites - LINK
    • A scrolling where the character isn't in the center of screen - LINK
    • Smooth zooming - LINK
    • Zoom according to the distance between two objects - LINK
    • An example to simulate shaking of the camera - LINK


  • Tiling/Grid

    • Quick tiling : LINK
    • Isometric tiles spawning - LINK
    • Timed grid spawning - LINK


  • Particles

    • Particles effect - LINK
    • Another particles effect (snow/flying leaves) - LINK
    • Platformer: particles for snow, rain and fire effect - LINK
    • Fog effect with particles - LINK


  • String manipulation

    • Text Parsing For Textadventure type of game - LINK
    • Display Number as Currency (With Commas) - LINK


  • Plugins specific questions


    • AJAX

      • Scores on a website - LINK
      • Scores on a website 2 - LINK
      • Highscore table - LINK
      • AJAX tutorial example - LINK
      • How do I pull variables out of a PHP page using AJAX ? - LINK
      • Ize's AJAX/PHP practical "Online Highscore" example - LINK
      • More about using PHP - LINK
      • Use GameJolt's API in C2 - LINK



    • Arrays

      • Shift values in an array - LINK
      • Randomizing an array (for a deck of cards) - LINK
      • Getting values from an array - LINK
      • String to array example - LINK
      • Filling an array with a string and tokens - LINK
      • Get the index of nested loops - LINK
      • Concrete commented example of use of arrays - LINK
      • A miniRPG example using array - LINK
      • Sorting an array - LINK
      • Simple explanations on what is, how and why use arrays - LINK
      • Saving and loading an array to/from webstorage - LINK
      • Another thread about using arrays - LINK
      • Saving/loading datas of/to an array to JSON using webstorage - LINK
      • Flood fill in an array - LINK
      • Random terrain generation - LINK
      • Endless Procedurally Generated Terrain - LINK
      • A discussion and capx about a level editor - LINK
      • Boids algorithm implementation in C2 - LINK
      • Video explaining how to fill an array
      • - LINK



    • Audio

      • Press/release a key to start/stop sound - LINK
      • Example of playing sound in different browsers - LINK
      • Audio for beginners - LINK
      • An audio fix for iOS - LINK
      • Play a random sound - LINK
      • This is how audio works - LINK
      • Volume control on a sound played - LINK


    • Browser

      • Execute javascript with a browser object - LINK


    • Button

      • How to change the style of the button plugin ? - LINK


    • Sprite

      • Gradually change size and fade a sprite - LINK
      • Making a button using a sprite (and handle clicking on it) - LINK
      • Placing a sprite in the center of the window - LINK
      • Designing sprites movements - LINK
      • Flashlight type effect on an image - LINK
      • Resize handles on a sprite example - LINK
      • Sprites overlapping completely each other - LINK
      • Reference both overlapping sprites when they are the same sprite type - LINK


      • Animations

        • Import frames from a tiles sheet/sprites sheet : LINK
        • Set the animation according to a key pressed - LINK
        • Make an animation loop - LINK
        • Where is the "loop" option - LINK
        • Mirroring since r69 - LINK



    • SpriteFont

      • Generate SpriteFonts for the official plugin - LINK


    • Mouse

      • Hide the mouse cursor - LINK
      • Getting the correct mouse position in a zoomed layer - LINK
      • ThumbStick example (mouse and touch) - LINK


    • Facebook

      • Facebook highscore list - LINK
      • Another topic about Facebook high scores - LINK
      • Get the Facebook Profile photo - LINK


    • Touch

      • LINK
      • Make touch controls motion controls - LINK
      • Get motion control values from iPad - LINK
      • Move object based on device motion - LINK
      • ThumbStick example (mouse and touch) - LINK
      • Using orientation detection on a device - LINK
      • Double tap with touch - LINK
      • A dash/slash effect like in "Fruit ninja" - LINK
      • Another thumbstick/analog pad example - LINK


    • Text

      • "Typewriter" text effect - LINK
      • SpriteFont - LINK
      • Text formatting, adding 0's - LINK
      • Using multiple webfonts with multiple text objects - LINK
      • Textbox scroll effect - LINK


    • Webstorage

      • Save variables/example of use - LINK
      • Other example of use of webstorage - LINK
      • Saving and loading an array to/from webstorage - LINK
      • Yet another concrete example of use - LINK
      • Local high scores - LINK



  • Behaviors specific questions


    • Drag & drop behavior

      • Drag and drop avoiding overlapping - LINK


    • Platformer behavior

      • Get player velocity? - LINK
      • Character not running smoothly - LINK
      • Jumping into and destroying blocks - LINK
      • Spawn and jump over ennemies (mario-like) - LINK
      • An example of double jump - LINK
      • Managing speed and animation - LINK
      • Ennemy control with platformer behavior - LINK
      • Player (platform behavior) and Physic (world objects) - LINK
      • Player (platformer behavior) push/pull a solid box - LINK
      • Another example of enemies patrol - LINK
      • Another patroling example - LINK


    • Physics

      • Create a rubber band (elastic slingshot) - LINK
      • Get the speed and direction of an object with physic - LINK
      • Player (platform behavior) and Physic (world objects) - LINK
      • Managing movement with animation - LINK
      • Drag and throw - LINK
      • Side-scrolling motorbike physics - LINK
      • Rotate a layer and still interact with its physical objects as they appear on screen - LINK
      • Simulating gravity affected orbits between celestial objects - LINK


    • Solid

      • Conditionnal solid - LINK




  • Exports


    • Node webkit

      • Remove borders from the exported EXE - LINK
      • HTML5 to BAR (blackberry) - LINK



  • Full game released .capx




  • This is only a small selection of questions. There are far more topics treated already.
    Be sure to SEARCH the forum.
    Be sure to search your keyword on the C2 general section as well as this "How do I" section !
    The answer you are looking for is probably already out there.

    /!\ Contribute to this topic /!\

    This list is in no way exhaustive and will keep evolving with C2. Nevertheless, it is quite a hard job to compile such a list and especially the phrasing of the questions. I noticed it is often a matter of wording, with people using different terms to speak about the same thing (especially true with GM users arriving with their specific GM "vocabulary" where C2's window is named viewport, and such...)
    In the end, the idea is to try to abstract as much as possible to cover the most ground possible.

    So, if you noticed a question that has its answer in the forum (in the whole Construct2 forum, "How do I" as well as "General C2 discussions") and you feel like it should be part of the list please post using the following format:

    [quote]
    Category: A general category where sorting the question.
    Sub Category (optionnal): For example if the question is plugin related, this is the name of the plugin.
    Question: Keeping in mind this is the "How do I..." section, the question should be clear and the most direct possible.
    Link to the answer: You can either post the url of the topic (general URL in the adress bar of your browser) or post specific (to quote a specific post find its link is to be found on top of the post, right click on the image next to "Posted: Time_Of_Post" and select "Copy link").
    When the question is covered in several posts in a related topic, post the url of the topic. When the question is covered in a specific post, and/or is not posted in a directly related topic, post the url of the post.
    [/quote]

    If you encounter an error or a dead link, please post it in this topic. It will be corrected as soon as possible.

    This topic is not the place to ask questions. To ask questions, make sure they are not already answered by a search and then, after reading the tips for posting in the "How do I" forum post a new topic.


    Any question in this topic will purely be deleted.
    This is the only warning.



    Also, if you see a question here, please ignore it as it will eventualy get deleted.
    Help us keeping this list as up to date, complete and clean as possible.Kyatric2014-01-30 11:32:35
    Moderator
    B
    154
    S
    52
    G
    28
    Posts: 5,385
    Reputation: 41,198

    Post » Thu Oct 20, 2011 1:35 pm

    Woooooow

    Thank you so much for the effort to do that!!! I definitely will look trough and I bet that I find a lot of things that I need!

    THANK YOU!!
    B
    17
    S
    3
    G
    4
    Posts: 94
    Reputation: 2,893

    Post » Thu Oct 20, 2011 1:56 pm

    This awesome, thank you! A few things I've noticed

    Making a title screen
    Zoom
    Bouncing ball from wall

    All lead back to this thread then clicked, also

    TiledBackground vertical scrolling -
    Bouncing ball from a wall - http://www.scirra.com/forum/make-an-object-bounce_topic44992_post281769.html">http://www.scirra.com/forum/infinitely-scrolling-backgrounds_topic44833.html[/ulr">

    Two seemed to be mixed up here. Definitely makes it easier for us noobs to find things. Nice work.
    B
    59
    S
    19
    G
    9
    Posts: 344
    Reputation: 9,612

    Post » Thu Oct 20, 2011 2:04 pm

    Awesome thread :D Stickied!
    Image Image
    Scirra Founder
    B
    82
    S
    21
    G
    20
    Posts: 3,517
    Reputation: 36,206

    Post » Thu Oct 20, 2011 2:08 pm

    Kyatric is one of the best moderators I've ever seen in a forum.
    Kudos to you, buddy!
    B
    99
    S
    37
    G
    10
    Posts: 440
    Reputation: 12,523

    Post » Thu Oct 20, 2011 2:33 pm

    Amazing work! Good job!
    Scirra Founder
    B
    203
    S
    134
    G
    43
    Posts: 17,453
    Reputation: 111,961

    Post » Thu Oct 20, 2011 2:35 pm

    @NickyDude: Fixed, thanks for the notice.
    Thanks everyone for the kinds words.
    Moderator
    B
    154
    S
    52
    G
    28
    Posts: 5,385
    Reputation: 41,198

    Post » Sun Oct 23, 2011 10:08 pm

    Here's a couple topics to help flesh out the list a bit more, hope it helps!

    Category -- Behavior specific questions:
    Sub-category -- Platform behavior:

    Character not running smoothly - LINK

    Jumping into and destroying blocks - LINK

    Category -- Text (or General Questions if you don't want to make a new category ):

    "Typewriter" text effect - LINK

    Category -- General Questions:

    Gradually change size and fade a sprite - LINKKyatric2011-10-23 23:49:38
    B
    20
    S
    8
    G
    6
    Posts: 607
    Reputation: 5,957

    Post » Sun Oct 23, 2011 11:59 pm

    Thank you a lot @SullyTheStrange, this is awesome.
    Sorry about the edit in your post, it was a mistake juggling between two tabs.
    I erased nothing (normally) just fixed the last url.

    Thanks a lot and please, everybody, keep 'em coming.
    Moderator
    B
    154
    S
    52
    G
    28
    Posts: 5,385
    Reputation: 41,198

    Post » Sun Oct 30, 2011 12:45 pm

    Thanks for this Kyatric!
    B
    17
    S
    6
    G
    5
    Posts: 120
    Reputation: 4,633

    Next

    Return to How do I....?

    Who is online

    Users browsing this forum: Eraserhead, ffman22, guero, PABERB, PKneeshaw and 1 guest