dop2000's Forum Posts

  • PLATFORM

    CAPX Platform - leave blood trail on floors and walls

    CAPX Platform - wall jumps with decreasing height, camera scrolling/panning effects. (someone else's project with my edits)

    CAPX Platform - push boxes

    CAPX Platform - fake 3D shadow on the ground

    CAPX Change magnitude and direction of a swinging rope (useful for making a grappling hook)

    CAPX Climbing a moving/swinging rope (for example in a platform game)

    RPG / INVENTORY / SHOP

    C3P Simple stacking inventory system.

    CAPX Platformer game about an archer. Includes in-game shop with different items sold on different levels. Simple CSV database of shop items and weapons. (requires CSV addon)

    CAPX Distribute skill points in an RPG game.

    PHYSICS

    C3P Physics puzzler - move and re-arrange blocks with mouse or touch, with snapping to grid.

    CAPX Physics - ball attracted to mouse cursor

    CAPX Physics game - catch apples with a bucket.

    CAPX Physics game - draw lines to catch falling objects.

    BULLET / OTHER MOVEMENT

    C3P Bullet with long trail - two example, with and without stepping.

    CAPX Car moving on a predefined path using waypoints (hold Space).

    CAPX Relative movement on another moving object.

    CARD AND PUZZLE GAMES

    CAPX and C3P Template for a card game – shuffling a deck of cards, dealing cards from the deck to two players, automatically sorting and arranging player’s cards. (C2 version requires MoveTo addon)

    CAPX Simple "Loop" game demo - click on the tiles until they line up correctly. Includes two versions, the one with sprites supports smooth rotation.

    If you would like to support or hire me, please click here

  • Over the past several years on this forum I’ve created hundreds of example projects. I noticed that I often repost links to the same projects, and I’ve been thinking of organizing and indexing them for quite a while.

    dazedangels encouraged me to finally do this, and kindly offered to host demos for some of these projects on her website. I will update the post with the links as she adds them.

    Please note that this is simply a collection of some random ideas and bits of code. Not all examples are good. I don’t recommend them for learning Construct, please use the official templates and tutorials!

    I will have to split the list into multiple comments because of the character limit.

    VIRTUAL JOYSTICK / THUMBSTICK

    CAPX and C3P Two virtual thumbsticks.

    CAPX Virtual thumbstick to control a character with 8direction behaviour.

    CAPX Floating thumbstick.

    CAPX Horizontal only thumbstick, controlling a car.

    CONTROLS

    CAPX Customizable rotating knob controls.

    C3P Move a sprite by repeatedly pressing two keys.

    CAPX Rotate an object by touching any part of the screen.

    CAPX Correctly detect gamepad events in your game. When pressing multiple gamepad buttons quickly, sometimes events "On button pressed" and "On button released" are not triggered. This demo provides a possible solution.

    CAPX Aiming with gamepad analogue stick or mouse.

    CAPX Force player to press a button on keyboard. Yes, it's possible!

    CUSTOM SLIDER BAR

    CAPX and C3P Custom horizontal and vertical slider bars for Construct 2/3.

    CAPX Controlling a slider bar with gamepad.

    ENEMY AI

    CAPX Enemies walking around walls (Metroid-style) or patrolling the perimeter. Does not require waypoints and supports high speeds.

    CAPX Platform - flying enemies that are patrolling, shooting and chasing the player. (someone else’s project which I helped to fix)

    CAPX Patrolling enemies, moving between waypoints.

    ARRAYS / DICTIONARIES / DATA

    CAPX Sorting 2-dimensional array by any column.

    C3P Export array data to CSV (Excel) file format.

    C3P Easily save lots of values in Local Storage – game progress, settings, coins or anything else.

    CAPX Connected listboxes - select category, select product, select model.

    Tagged:

  • Base64 is not a good choice, because it's very bloated. It's ok for small images, but a screenshot in Base64 format can be many megabytes.

    You can now post binary data to url with AJAX. But I don't know if Firebase supports this.

  • The shortest way is to use regex:

    System Compare two values
     RegexSearch(TextBox.Text, "[a-zA-Z]{3}_[a-zA-Z0-9]{6}","g")=0
     	-> Button set enabled
    

    Test how it works here.

    You can also use expressions like len(), mid() to check that the string has the correct structure, but this will require more effort.

    construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions

  • A common practice is to put all buttons and controls on "UI" or "HUD" layer, set parallax to (0,0) and scale rate also to 0.

    This way it will not scroll or scale and all buttons will stay in the same place on the screen.

    If this isn't working for you, you must be doing something wrong. Please share your capx file.

  • Awesome, thank you!

  • Javanie Thank you so much for the detailed answer!

    Do you know how long can the video stay preloaded?

    For example, if I preload the video at the beginning of level 1, and player decides to watch it only at level 20 (one hour later). Will it work, or does it get expired after some time and I need to preload again?

  • You do not have permission to view this post

  • Mayfly Did you set "Bullet=yes" in physics properties for balls?

    Well, you can "cheat" and adjust the ball trajectory after the collision. Before the shot save reflection angle in a variable. When the two balls collide, adjust ball2 velocity, making it move at previously calculated angle.

  • Try this:

    dropbox.com/s/18y7yfqblepwamc/pac-disk2.c3p

    It works much better in my tests.

    I would also suggest improving controls, making them analogue. Instead of "simulate control" action, use "Set vector" actions, applying more speed if the phone is tilted more.

    Physics also should work quite well, check out this demo I made some time ago:

    dropbox.com/s/02a1f7dhyeklnlw/BounceBall_2Examples.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Many events in Construct pick instances.

    For example, "Icon is visible" event will pick all instances that are visible.

    Or "On clicked icon" will pick one clicked icon instance. Everywhere inside this event "icon" will refer to that one picked instance.

    If you want to pick another instance or instances in the same event, and work with both picked scopes independently, use the trick with a family:

    Pick Icon
     Pick IconFamily 
    	.... do something with icon instances
    	.... do something with IconFamily instances
    
  • From the documentation:

    You can leave it at 0 if you don't need it.

  • You can use a family to pick another instance of the same object in one event. Add icon sprite to a family and you can do this:

    Pick Icon
     Pick IconFamily where IconFamily.IID=(Icon.IID-1)
    	Set Icon scale to 1.2
    	Set IconFamily scale to 0.8
    

    Picking by IID will only work correctly if you created icons in the correct order. It may be easier to use an instance variable, e.g. "Pick IconFamily where IconFamily.Day=(Icon.Day-1)"

  • Sure.