LuckyRawat's Recent Forum Activity

  • R0J0hound

    yes, that what I was trying to do, my method was not working at the end. in your example.

    clamp(((self.X-p(self.n).x)*(p(self.n+1).x-p(self.n).x)+(self.y-p(self.n).y)*(p(self.n+1).y-p(self.n).y))/((p(self.n+1).x-p(self.n).x)^2+(p(self.n+1).y-p(self.n).y)^2),0,1)

    I have multiple path and all those paths are already created on runtime. by default it picks object 'p' which was first created.

    I have set variable on 'p' by comparing which I want to choose which path to be picked.

    How can I pick a spesific path to use?

  • I fixed above issue by adding min,max

    -> System: Set d to clamp(distance(ax,ay,clamp(Touch.X,min(bx,ax),max(ax,bx)),clamp(Touch.Y,min(ay,by),max(ay,by))),0,distance(ax,ay,bx,by))

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • is it possible to add inner shadow on a Sprite by any effect or javascript or css any way?

LuckyRawat's avatar

LuckyRawat

Member since 27 Aug, 2015

Twitter
LuckyRawat has 11 followers

Connect with LuckyRawat

Trophy Case

  • 11-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x2
    Popular Game One of your games has over 1,000 players
  • x43
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

26/44
How to earn trophies