Laurent's Forum Posts

  • It seems like it on registers the on touched trigger while playing it on a phone and ignores the Is in touch event.

    Edit:

    Nope, the problem was that you used Mouse.X and Mouse.Y in your expression. And since touch devices like phones don't have mouses it couldn't get it's coordinates. Replacing those with Touch.X and Touch.Y solves the problem. Here's a fixed version: https://dl.dropboxusercontent.com/u/166 ... wPath.capx

    glerikud

    Thanks you so much !! ou're the best ! I was so obsessed by the touch action that I completly forgot to check the rest of the code.

  • Hi,

    In the enclosed .capx, everything works perfectly well on PC (draw path, click red dot to make it follow path) but it fails to work on touch device. But the code is the same

    Is there any explanation to that ?

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

    Thanks for your help

  • Thanks 99Instances2Go ! Your proposition is very interesting too ! I'll try to implement "start blob movement when blob is taped" and possibility to delete trajectory if user is not pleased with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • zenox98 I agree with you, Thanks ! But... my frame only states Edit, Report, Quote, no cross on this very post

    you're right ! I didn't do things well but now it works ! Thanks so much for your help ! I'll try to implement red dot appearing when line is drawned and impossibility to trace a second path.

  • Hi

    Thanks for the compliment by I have been helped and used my basic skills to adapt this help to my needs.

    Your last submission is interesting for its new approach but still does't work on touch device. It's very strange how touch/mouse react differently from computer to touch screen. Any idea about that Ashley ?

    BTW, there are 2 points I implemented on my last attempt :

    • red dot appears once path has been drawn
    • once a path has been drawn, it's impossible to draw another one until the one on screen is deleted or completely achieved by the moving dot
  • *deleted post*

  • Thanks

    But I'm afraid I'm not good enough with Construct to really understand your advices. If ever you sometime have the chance to look at the capx, it might tell you more about my needs.

  • Hi vitortaranto

    This thread is a bit old but maybe you can help me with this capx you posted years ago.

    It matches exactly my need except for two things:

    • When a path is drawn and the rocket moving, how can I prevent the user to draw another path before the first one is finished ?
    • How can I make it work on touch device ?

    Thanks for any help you can provide me with !

  • > Thanks

    > but how do I implement that ?

    >

    Sorry, I didn't look at your capx so not sure what you are doing exactly, but here's an example to explain what I mean and you can apply it to your situation.

    Let's say you want to create 10 sprites starting at coordinates 100, 100 and every 25px moving straight right (increasing X):

    ON whatever triggers

    -For startindex=0 endindex=9

    --create sprite at location x = 100 + 25*loopindex; y = 100

    This will create 10 sprites at x coordinates 100, 125, 150, 175, 200...

    Hi Badmood,

    thanks for the advice. Actually I'm trying to draw a path with the mouse spawning dots on a regular distance. Then, a sprite follows the path

  • Well, I managed to make it work on a computer but it despertly doesn't work on a touch device.

    Here is the capx : https://www.dropbox.com/s/kabhgy1qz9rtg ... .capx?dl=0

  • Thanks

    but how do I implement that ?

  • Hi there,

    I've been making a gesture path drawing for a sprite to follow. Everything works fine except for the path drawn with the mouse. I'd like to have dots to be spawn at a regular distance from one another.

    Anyone has an idea on how to do that ?

    Here the .capx I'm working on : https://www.dropbox.com/s/7befiup6yrfwx ... .capx?dl=0

  • Lovely. Thanks !

  • > AndreasR do you mean that with Intel XDK, app generated can't exceed 20 MB ?

    >

    No, I meant that the file size of the app will be about 20 mb. Surely if you add a lot of big images or sounds the file gets bigger.

    But the minimum size is about 20 mb.

    Thanks ! do you know if there's a maximum size to publish to iOs ?

  • AndreasR do you mean that with Intel XDK, app generated can't exceed 20 MB ?