Laurent's Recent Forum Activity

  • 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 ?

  • Good example,

    How would you do to drag an entire layer instead of just a sprite ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Interesting conversation.

    I agree with blymi, this is a situation I have to deal with all the time.

    Maybe a behavior could be created for layers, like "Intercept input", meaning actions could not pass through this layer and affect everything underneath (except what could be visible through transparent parts of the layer).

    And "Disable input and obstacles when layer is invisible", meaning input could not be registered on this layer when it is invisible as well as obstacles won't be taken in account by pathfinding and physics.

    What do you think ? Ashley, could it be implemented in a future beta ?

  • > Thanks, R0J0. I'll try to find a way to prevent the box to move continually

    >

    Can be done easily.

    Set initial speed of bullet sprite to 0.

    When mouse down - set speed to 200.

    When dot.count = 0 -> set bullet speed back to 0.

    Lovely !

    Thanks

  • Thanks, R0J0. I'll try to find a way to prevent the box to move continually

  • If that doesn't work then I think there was a change in C2 that caused it not to work. However there should be a fix in the topic it came from as I recall.

    Alternatively this also works:

    mouse: left button down
    --- create dot at (mouse.x, mouse.y)
    
    for each dot ordered by dot.zindex ascending
    --- sprite: set angle toward (dot.x, dot.y)
    	system: compare distance(sprite.x,sprite.y,dot.x,dot.y)<sprite.bullet.speed*dt
    	--- dot: destroy
    	else
    	--- stop loop[/code:2tuualvn]
    

    Thanks for the quick answer. But unfortunately, it doesnt seem to be working either.

  • Unfortunately can't open the link you are referring to.

    The file has been created with the last version of the beta

Laurent's avatar

Laurent

Early Adopter

Member since 18 Jan, 2012

Twitter
Laurent has 1 followers

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies