trueicecold's Forum Posts

  • You could try this tutorial:

    https://www.scirra.com/tutorials/1457/s ... oid/page-1

  • Hello all,

    Yes, I know the Tint effect must use webgl, but since not all mobile browsers support it (Android < 5 and iOS < 8), I'm looking for a workaround.

    I'm trying to avoid both preparing sprites in different colors, or using cocoon/crosswalk to force the chromium browser and a large size overhead...

    Thanks!

  • So... I changed TouchIndex to TouchID, since this is something you can get X and Y for (XForID(TouchIndex)). All works well now

    Thanks for anyone who tried helped!

  • , I think my problem resides in the fact that "is in touch" refers to ANY touch on the screen, and in its action, Touch.X will return the first Touch X, and not the one I really want to calculate from. so if I have 2 touches (first, the fire, then the dpad), there's no way for me to get Touches[1].X.

  • , exactly. All is ok if I touch the dpad and move the ship and then touch the fire button.

    Problem starts when I first click the fire button, and only then touch the dpad to make the ship move. I get very weird ship movement...

  • Why not simple ...

    https://www.dropbox.com/s/ehtaepf7693rr ... .capx?dl=0

    https://www.dropbox.com/s/ehtaepf7693rr ... .capx?dl=0

    Thanks, because dpads are very small in general, so I wanted to extend the range of moving, by moving potentially all across the screen, once the user started touching the dpad.

  • newt, sorry if I have been cryptic but I wrote my exact issue in the first post... I'm trying to create a dpad for my ship. it works, but when clicking the fire button first and then the dpad, I can't detect which touch is the dpad one...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, but this doesn't work if I touch somewhere on the screen and a second touch on the dpad...

  • Sorry, but I couldn't really understand what you're tying to say...

    Could you please elaborate on the issue?

  • Thanks, but I can't see "is nth touch" or "on nth touch" in the conditions list. There's "Has nth touch" but in my case that will always be true...

    I've tried adding Compare Variable TouchIndex Equal To Touch.TouchIndex, that didn't work as well...

    Attaching the capx here:

    http://ge.tt/2xEpUGb2

  • I have this event sheet

    I'm trying to create a dpad for my spaceship.

    It works just fine when the only touch is on the DPad, but when I touch the screen, and then the DPad at the same time, the spaceship doesn't move as wanted...

    I've also tried adding another condition in event 2 comparing Touch.TouchIndex to TouchIndex variable, but didn't help as well...

    Any idea? I would like to move the space at the angle calculated by the TouchIndex I already saved...

    Thanks!

  • DUTOIT, I ended up passing the Sprite.UID as a parameter and use System->Pick by evaluation to find the correct instance.

    Thanks a lot!!!

  • Hello All (again)

    I have a "For" loop, and inside it I want to call a function that will run on the instance being select by the "For" loop.

    Calling the function as of now runs the actions on ALL sprites, and not just the specific instance...

    Any workaround to this?

    Thanks!

  • so I ended using Pathfinding and naming each of the markers accordingly. Works a treat! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Attaching my capx, if someone wants to have a look <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    https://dl.dropboxusercontent.com/u/607 ... ts%20.capx

  • Hey all.

    I got a rotated sprite that I use "Rotate towards" another sprite's X and Y.

    How can I tell if the rotation ended?

    I'm trying to mimic a soldier moving to waypoints. so it rotates quickly to the next point, and then walks to it and so on and so on...

    Thanks!