Yann's Recent Forum Activity

  • need the capx

    always need it, it provides feedback

  • Like a basic drag&drop but you have to set the animation frame according to the position of the mouse (:

  • Create 3 different events for each collision check

    You'll just have to copy the same action on the three

  • dropbox \o/

  • yep I meant exactly animated frames

    stretch is what id done when you set width and/or height to values that aren't the original imagesize of the sprite

  • let me know if that worked :D... I didn't test that, just wrote as it came on the little quick reply thingy and then edit a bit.

  • nope only you :D

    hehe kidding. That's a nice example

    I would probably make an animation of the turning page.

    As it's always the same (would be a bit heavy though)

    Maybe it could be done by horizontal stretching of a vertically stretched 1px height sprite gradient starting from width = 0 to width = pageWidth during the horizontal movement.

    Also scaling up height a bit and then down for faking perspective.

    For the rest it's just some frame on corresponding thumbnail and some fading effects

  • First checking between two instances is a pain because of picking.

    Also it can be pretty cpu intensive if you have many instances because you will have to check instance.count * instance.count times

    But anyway it can be done with picking ID like :

    distance(sprite(0).x,sprite(0).y,sprite(1).x,sprite(1).y)[/code:2dvpkpb2]
    So I guess for distance checking it would look like
    Sprite has two instance variable :
    [ul]
    	[li]closest   //will hold the UID of the closest instance[/li]
    	[li]dist      // will hold the distance of the instance matching the UID[/li]
    [/ul][code:2dvpkpb2]System: for "first" from 0 to sprite.Count-1
       System: for "second" from 0 to sprite.Count-1
       System: Pick Sprite instance loopindex("first")
          Local variable tmpDist = 0 //for clarity
          -> System: set tmpDist to distance(sprite(loopindex("first").X,sprite.(loopindex("first").Y,sprite(loopindex("second").X,sprite.(loopindex("second").Y)
          // Check if closer
          System: Sprite(loopindex("first").dist > tmpDist
             -> Sprite: set closest to Sprite(loopindex("second)).UID
             -> Sprite: set dist to tmpDist
          // Only happen at first check
          System: loopindex("second") = 0
             -> Sprite: set closest to Sprite(loopindex("second)).UID
             -> Sprite: set dist to tmpDist[/code:2dvpkpb2]
    You should get the UID of the closest instance of each sprite to each other in the sprite.closest  instance variable.
  • Hi guys

    I made a little plugin a while ago to do bitwise operation like

    12 AND 9 = 8
    12 OR  9 = 13
    12 XOR 9 = 5
    NOT 9    = -10
    12 <<  2 = 48
    12 >>  2 = 3[/code:36oad0vt]
    
    And some condition to check if a number is power of 2 and if some bitfield match a mask. Stuff like that.
    
    if you have any question about this WTFness please, brace yourself and read that first
    [url=https://developer.mozilla.org/en/JavaScript/Reference/Operators/Bitwise_Operators]https://developer.mozilla.org/en/JavaSc ... _Operators[/url]
    
    The plugin is here:
    [url=https://app.box.com/s/hfxd0q90mwmv8fbsod0e]Bit.zip[/url]
    
    #### Conditions ####
      Check
        - Check Mask
        - Is bit set to 1
        - Is power of 2
    
    #### Actions ####
    NONE
    
    #### Expressions ####
      Manipulation
        - set0
        - set1
        - toggle
      One Operand
        - Not
      Shifting
        - lShift
        - rShift
      Two Operand (ok I forgot the '-s')
        - AND
        - OR
        - XOR
    
    And that's all <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
    
    feedbacks are taken into accound from 18h30 to 18h35 GMT+1 (gneheheh)
    
    It was a joke �_�
  • And we would be glad to accept :D ... But that might start an answering war (money... wars... always associated).

    Don't worry helping is learning.

  • I tested your capx with and without pixel rounding on firefox8.0 (should update) and chrome and there were no issue with your non rotated tiledbg

    But indeed as soon as you rotate it, you can see the seam appear. I think it's logical, the graphic engine have to find a way to display oblique lines and that might cross the seam.

    For this specific problem, there's a simple workaround: flip your image vertically and make your tiledbg height slightly lower. That should do the trick

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • like that shapeMatching.capx

Yann's avatar

Yann

Member since 31 Dec, 2010

Twitter
Yann has 5 followers

Connect with Yann