LittleStain's Recent Forum Activity

  • If touch uses mouse input "on touch" is the same as "on mouse left click" and "is touching" is the same as "mouse left button is down",

    there is no need to make seperate events or conditions for the mouse..

    For us to help with your other issues will be pretty hard without seeing the actual capx..

    I know a lot about touch-stick controllers, I actually created a working example for all behaviours, but it isn't really clear to me what your issue is..

  • Would you like an "or" or a random action?

    you can create an "or block" by right-clicking your conditions and choose make "or block" ..

    to make random actions there are many ways depending on what you want the actions to do..

    among others you could use the random() expression and the choose(expression)

  • It would be as simple as

    set text : (variable)/10&" feet"

    where (variable) is the distance travelled in pixels..

  • If I understood what you are asking I might be able to help..

    Could you try to explain it a bit better?

  • Could you elaborate and show an example of what you are trying to achieve?

  • I thought the pressure buttons were accesible by gamepad.button(0,6) and gamepad.button(0,7)

    In this topic the whole gamepad was made visible:

  • the moveto plugin has the condition ismoving..

    so you can scale during the ismoving period..

    I guess getting the distance between start point and endpoint and setting the scale according to the percentage moved while ismoving would do the trick..

  • Collide should automatically pick the right object, unless you are trying to pick another object than the one you are colliding with, but then it has nothing to do with picking the object by collision..

    Could you make a screenshot of your events, so we can see where things go wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What doesn't work for you in the example I posted?

    distance-scale

  • There's no reason why using clamp would act differently than not using clamp..

    it's just limiting the max and min x and max and min y-values..

    Oops..

    typed too fast

    Clamp(mouse.x,10,400)

    Clamp(mouse.y,10,800)

    had the order wrong within the clamp expression..

  • using clamp would work

    player set x to clamp(10,400,mouse.x)

    player set y to clamp(10,800,mouse.y)

    I had to guess the numbers, but the 10 should be the width of the walls, the 400 should be the projectwidth-the width of the walls

    800 = projectheight-width of the wall..

  • It would be a lot easier to answer your question if it would be clearer what you are trying to achieve..

    if you want to restrict the player to a certain area, using clamp would probably help..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies