LuckyRawat's Forum Posts

  • 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

  • If I want to find Index of "example" from the text "this is an example of a text" and answer should be 3

  • How can I find index location of the string "example" from text "this is an example of a text"

  • Actually I have got the solution

    Instead of using every 0.5 second I have to use Every (distance / speed) second and now everything is OK

    if I increase or decrease speed gap doesn't change

  • I have an Image "spawner" which spawn a "Obj" with bullet behavior

    every 0.5 second "spawner" spawn "obj" with speed 100 and Angle of Motion 90.

    on each "obj" there is a gap. But if I increase or decrease bullet speed. that gap also increase and decrease. So My question is

    without adjusting time Is there a way so if I increase and decrease speed doesn't impact gap between each "obj"

    Idea is something line On "obj" created when "obj"'s y is greater than 50 pixel from spawner then spawn new "obj"

    Tagged:

  • I send you file which has this issue

    please note lucid: There is no issue if you use 7-30-2019 version of spriter