LittleStain's Forum Posts

  • > The seam is hidden by either carefully placing objects in the same places on either end or using the paster object to copy the other side. It just to make the transition appear seamless.

    >

    >

    Would use paster be essential or could it be done with creative triggering?

    Did you really read the answer?

  • Usually this setup should work, if your actions are not conflicting..

    You could try using TouchID..

    From the Manual:

    Multi-touch

    The Touch object supports multi-touch. This is most useful with the On touched object and Is touching object conditions, which can for example detect if multiple on-screen touch controls are being used. This is sufficient for many games.

    For more advanced uses, the TouchID, XForID and YForID expressions can be used to track individual touches for different purposes. Each touch has a unique ID (which is an arbitrary number), and can be accessed using the TouchID expression in an event like On any touch start. The touch ID can then be stored in a variable and tracked using the XForID and YForID expressions. Finally comparing the TouchID in On any touch end indicates when that touch has been released.

  • Global Layer should work..

    Not sure why you'd have an issue with the visibility..

    https://dl.dropboxusercontent.com/u/485 ... sible.capx

  • Long story, not so very clear question..

    Do you want to know how to change to a different layout and coming back to your original one?

    Do you want to know how to set items invisible and/or untouchable?

    Do you want to know how to work with global layers?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Most of the math in that example is to prevent the overlapping..

    > All you'd need is the part that does the bullet instead of the follow path..

    >

    > Like this:

    > https://dl.dropboxusercontent.com/u/485 ... rcles.capx

    >

    This is perfect! Thank you so much, a lot easier to read for those of us who are a little lacking in geo/trigan-ometrical knowledge <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy"> I noticed the pathfinding method was a little shaky when the screen is set to scroll to it, I'll be keen to see if the bullet smooths things out. Is bullet a better behavior to use over, say, the car behavior?

    You are free to try and make this with the car behaviour..

  • Most of the math in that example is to prevent the overlapping..

    All you'd need is the part that does the bullet instead of the follow path..

    Like this:

    https://dl.dropboxusercontent.com/u/485 ... rcles.capx

  • You have "set angle" property of the bullet behaviour to NO

    So instead of setting the angle towards the mouse, you should set the bullet angle of motion towards the mouse..

  • Don't remember who made this, but it's a nice example..

    adaptativeZoomScroll.capx

  • On start of layout is only called once..

    What you probably want is:

    system every tick

    sprite set angle towards (mouse.x,mouse.y)

    To add 2 to size use the event I posted before..

  • I'm not sure what it is exactly you want..

    But you can get the angle between two objects with

    angle(object1.x,object1.y,object2.x,object2.y)

    the distance with

    distance(object1.x,object1.y,obect2.x,object2.y)

    You could use the bullet behaviour, like in the moveto example, or the third party moveto-behaviour or litetween..

    To get the point halfway you could use lerp

    so x would become:

    X = lerp(object1.x,object2.x,0.5)

  • My first guess is it isn't possible, because sampliing is a project property..

    As I understand the whole canvas gets drawn as 1 and the sampling is therefor done on the whole canvas-element..

  • I guess you'd need to implement something like the google search api in a construct plugin and have it return a random url..

    https://developers.google.com/web-search/docs/

    Using the forum search I also found this post:

    It should be possible using the Sprite object, AJAX object and this plugin: plugin-json-import-export-generate-edit-inspect_t100042

    Using Google's old image search API (found here https://developers.google.com/image-sea ... uide?hl=en) you can use AJAX to request a link with the search, parse it through the JSON parser plugin and then get the image links that you can use on the sprite object.

  • That sounds like "Fullscreen in browser: Letterbox integer scale"

  • There is the load image from url action?

    Not sure if cross-domain requests are handled well though..

    If you can do it from javascript, you might want to create a plugin for C2 to do it..

  • You could also choose to use instances of the button object instead of new buttons and give them instance variables to know what button is clicked..