mekonbekon's Recent Forum Activity

  • Here's one way, assuming you're picking the "n" nearest Object B to Object A and there are multiple instances of A and B:

    Give B the instance boolean "isPicked" and set to false as default.

    1. Pick instance of Object A (using whatever criteria you want)

    ---System: Repeat "n" times

    ----- Object B isPicked is false, Object B: pick nearest B to (A.X, A.Y): Set isPicked to true

    2. Object B: isPicked is true: do your thing.

  • Had another thought about this over night; instead of spawning loads of mask objects, you just use one that tracks the mouse and paste it to a drawing canvas object positioned over the dirty version of the pan - The canvas uses the destination out effect instead of the mask, and the mask is set to invisible.

    Here's an example:

    dropbox.com/s/x7njq8iru5x32m2/dishwasher01.c3p

  • No problem :-)

  • Here's one way of doing it:

    dropbox.com/s/2ooh1o99entx1z2/dishwasher.c3p

    In this example I create a grid of dirt objects that cover the pan - these are invisible, but will be used to track how clean the pan is.

    There are two instances of the object, one with a dirty animation overlaying a another with a clean animation. As you move the mouse over the pan I repeat-spawn a mask object to hide the dirty version wherever it's spawned (using destination out effect), gradually revealing the clean one. Any dirt objects overlapping the mask object are destroyed - a tally is kept and when all have been destroyed the pan is 100% clean.

    Bubbles are created - I have these draining off but if you want them to remain you can disable their bullet behaviour.

    There's a more detailed explanation in the project comments.

  • I'm guessing it's because you haven't changed the txt_answers.no variable for the copy/pasted instances to 6-10.

  • You can use two "for" loops to draw the objects, one for the grid width, one for the grid height:

    dropbox.com/s/c7jaf246dbrvx9o/objectGrid.c3p

    In this example you can change the grid using the gridWidth gridHeight and margin variables.

  • Is the new colour picker a permanent feature for comments? It's a pain to type in the RGB values every time you want to set comments to the same colour. A set palette is much quicker to use.

  • If you want the object to follow a curved path to a specific point rather than travel a fixed distance it can be tricky using bullet.

    This method will ensure the object passes through the mouse click:

    dropbox.com/s/sp4npl259hcudia/parabola.capx

    In the demo "to point" will stop the object at the mouse click, whereas "continuous" will keep it going until it hits the ground.

    (credit to R0J0hound)

  • Frankly speaking, now that it has been mentioned, I wouldn't be averse to a little "there are 12 events using this object/variable" additional warning text there so that we can go wut? I thought this wasn't used just in case.

    It would be extra-handy if that pop-up also had a "find all references" button so you can immediately jump to the usages.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can do infinite scrolling using just a single tiled background object; instead of moving the X-Y position of the background there's an imageXoffset and imageYoffset value that you can adjust.

    Every tick:

    -> TiledBackground: Set image Y offset to ((Self.ImageHeight+Self.ImageOffsetY+scrollSpeed*dt)%Self.ImageHeight

    You'll find the set offset actions in the "Image" section of the actions menu

    This modulo "%" will automatically reposition the offset once it exceeds the image width.

    A negative scrollSpeed value will reverse the direction of movement (this is also why you add the image height at the start - modulo can go a bit weird with negative numbers.)

    Switch height to width and Y for X for horizontal movement.

  • Event 52 will trigger every tick unless you add a "trigger once" condition to it.

  • Thanks again, DiegoM.

    I've added the idea to the suggestions list:

    construct3.ideas.aha.io/ideas/C3-I-1409

    Let's see if it gains any traction :-)

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
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies