LuckyRawat's Recent Forum Activity

  • BTW I created chessboard in construct and then I created movements for each player.

    there were few things which I didn't made yet, restricted moves for king, castling and en passent square.

  • You have used javascript programming in the sample and I don't have javascript knowledge nor other programming language. So instead of doing

    runtime.globalVars.textBoard = chess.ascii();

    how can I save chess.ascii() in textBoard directly?

  • I don't know how to call things from file. can just give me any example on how to call things? and do I have to download chess.js and import in construct ?

  • I have read lots of tutorials on how to make chess but those tutorials are on other programming language like javascript etc. I tried to follow those tutorial but I don't know how to implement that in construct.

    please anybody can guide me on how to start?

    If 8x8 array I feed players name like

    bR bN bB bQ bK bB bN bR

    bP bP bP bP bP bP bP bP

    0 0 0 0 0 0 0 0

    0 0 0 0 0 0 0 0

    0 0 0 0 0 0 0 0

    0 0 0 0 0 0 0 0

    wP wP wP wP wP wP wP wP

    wR wN wB wQ wK wB wN wR

    then how can I move sprite position according to their names in the Array

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It was my mistake, I was using ..(..(...) % 10) × 10) % 50 = 0 instead of ..(..(...) / 10) × 10) % 50 = 0

    I was doing remainder on both side

    Thanks

  • No This is not what I want. What I want is Every 50 pixel distance I want to trigger.

    i.e 50,100,150,200,250 ... and so on.

  • hello InDWrekt thanks for your answer.

    this is triggering after 3-5 pixels. How do I setup it for my custom pixel (for example 50px distance).

    and I'm also not sure how its working. for example If distance is 300px then how these events working

    can you explain how this event working?

  • I am calculating distance from touch start to current position of touch. then I want to trigger when distance is crossed every 50 pixel. i.e. when distance reached 50px then trigger it, when 100 pixel crossed then trigger it.

    I want to do something where its triggered. How can I achieve this?

  • I have 10 instance of sprite "dot" in the layout now I want to position them equally between 2 positions.

  • in above example only 2 dots but in actual game there are more than 2. sometime 5 and sometime it could be 10 etc.

    See image. when a line is overlapping with dots then I want to get their uid in each other dot's instance variable. for example If line is overlapping with dot1 and dot2 then I want to get dots2 uid in dot1's variable and dot1's uid in dot2's variable.

    for that reason I stored all overlapping line's uid in dot's variable so by matching that uid number in variable I could get both dot's uid in each other.

    Do you have any short way?

    btw I'm trying to make this game

  • I have 2 instances of sprite "dot" in the layout. "dot" has a string variable "num".

    first instance's variable value is "1,2,4,7" and second instance's variable value is "3,7,8,9".

    Now in the event sheet How can I find matching number of both instance. Like in above two values 7 is matching.

    I know it can be done using tokenat expression but how to compare two instance of same image.

  • Thanks it worked

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