LuckyRawat's Forum Posts

  • R0J0hound I used below method.

    | Global number ax‎ = 0
    | Global number ay‎ = 0
    | Global number bx‎ = 0
    | Global number by‎ = 0
    | Global number a‎ = 0
    | Global number d‎ = 0
    + System: On start of layout
    -> System: Set ax to point1.X
    -> System: Set ay to point1.Y
    -> System: Set bx to point2.X
    -> System: Set by to point2.Y
    -> System: Set a to angle(ax,ay,bx,by)
    
    + Touch: Is in touch
    -> System: Set d to clamp(distance(ax,ay,Touch.X,Touch.Y),0,distance(ax,ay,bx,by))
    -> star: Set position to (ax+cos(a)×d, ay+sin(a)×d)
    

    I place 2 points in layout. point1 poisition (681, 268), point2 position (426, 459).

    above code is working except one issue. when mouse is touching ahead of point1 then it still moving star towards point2

  • is there a way to make a path on layout then drag sprite over that path in runtime?

    is it possible if I make a path using timeline then drag object over that path?

    Tagged:

  • if bullet has grtavity applied then it could calculate impact. but gravity is zero, so these should work same.

  • I did raycast and shoot a bullet from same point and they both collides on same spot but reflections of both are not same there is slight difference in their reflection angle. please check and let me know if its working as it should or its a bug or my fault somewhere

    myfile is attached

  • Typo on my part. It should be mid(a,loopindex,1). I wrote i instead of 1

    yes it helped.

    Thanks R0J0hound

  • R0J0hound,I tried but it returns nothing, matching is still blank

  • I know about tokenat and its not about letters matching only. its about matching then comparing then counting and then adding. I tried a lot with tokenat, tokencount but I didn't find a way

  • alextro thanks but its is not what I'm looking for

  • I need help on something I have string variables curWord & typeWord and matching I want to check if typeWord is having letters matching with curWord, but if typeWord has any letter which is repeating then I want to check if curWord also has that word repeating then I want that letter to be added in matching variable twice but if letter is repeating in typeWord only and curWord has it only once then I want to add it to matching only once.

    for example:

    Example: 1

    curWord = green

    typeWord = omega

    then matching will be = ge

    Example: 2

    curWord = green

    typeWord = dreed

    then matching will be = ree

    Example: 3

    curWord = great

    typeWord = dreed

    then matching will be = re

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • is it possible to add inner shadow on a Sprite by any effect or javascript or css any way?

  • lucid animations with sounds not importing in construct 3 properly. events are not being added, containers also not being added

  • Maybe this is a bug. I created bug report on this. and same bug was created year ago by someone where Ashley Assigned himself but not resolved yet.

  • R0J0hound I tried both ways apply HUD and formula. I was able to fill only upto certain area and both ways has same result.

    is there any way to paste object at a position. there is no option in actions but can we do this through Javascript?

  • R0J0hound see my events and you'll see what issue I'm facing.

    layout is rotated at 270 degree So my input from mouse also being rotated. So if I drag my mouse top to bottom in canvas drawing from right to left.

    myfile

  • I have layout and canvas inside. I'm drawing in canvas using brush sprite. I have requirement to rotate layout at 270 degree and now drawing in canvas has issue because of coordinate. how to I translate touch coordinates for rotated layout?