jaytee's Forum Posts

  • umarfarooq

    Here's my full coding. Let me explain it, start of layout a csv is stored to the array (thanks rexrainbow) then it waits for 1 second to call a Players_defense_overall.

    Players_defense_overall calls 2 other functions that consist of FOR EACH XY elements as stated earlier in my post. You might question why there is a WAIT action between the functions its because i want it to:

    As you can see, the TOPG(defense) will SET Array.at(CurX,17) initial value first depending on what condition it checks out then the after 1 sec, function FPG(defense) (What is should be doing) will add depending on what condition it checks out into the CURRENT VALUE Array.at(CurX,17) but instead that, it doesnt do that.

    I hope my explanation is understandable. If you want i can also upload the capx if you have the time to look into it. Thank you!

  • umarfarooq

    Thank you for your time and answer. But i have done what you mentioned and been trying to do any fix for 10 hours now but no luck.

    Can you you say that my condition / logic is correct?

    But still thank you for your assessment.

    I have just learned using arrays recently and i have always been afraid that i might get stuck and now here i am..

  • umarfarooq

    Yes, heres the full one, its function that will get called at start of layout:

  • Thank you for time. Please help me understand my problem below.

    As you can see below is my condition saying Every XY elemenet if Array.At(curX,15) is in between values then set Array.at(curX,7) value to current value.

    EXPECTED RESULT: 3 is the current then value shouldn't change or also be three(3)

    ACTUAL RESULT:

    WHY??? WHY did it turn to 200?? Why did it get the value beside it or the value of CurX,6????

    Heres another one, same condition as above but this time if condition is correct then CURRENT VALUE PLUS(+) 12

    EXPECTED RESULT: 3 is the current then value should be twelve(12)

    ACTUAL RESULT:

    THE VALUE COPIED CurX,6 THEN ADDED 12?? WHY???

    I'm very sorry if i sound very furious because i really am. I won't be posting here if i havent tried any kind of alternative. My logic makes perfect sense but its not performing what is suppose to. PLEASE correct or explain to me what i am doing wrong

    Thank you in advance! :(

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to save an excel file as csv, then import to project file, and then point to it from the event sheet?

    I have it imported, but not sure how i can point to it so that it can be loaded into my array object.

    Thanks!

    Tagged:

  • Thank you for your reply

    However this is easy if there are 2 sprites.

    Sorry i didn't mention but this is only 1 sprite appearing as 2 object. How can i differentiate them from one another?

    Thanks again if you could answer :)

  • I hope someone can help me with this.

    What i want to do is when an object1 is placed on top of object2, object2 position will be in the previous origin position of object1 and vice versa

    Is this even possible? Thanks in advance!

  • Hi! Can someone explain to why is the positioning of "trigger once will true" affects a condition.

    Like you see below, if its above steal_percentage = 1, it doesn't work. But if its below, it works perfectly fine.

    Thank you in advance :)

    Tagged:

  • Alright, thank you dop2000 !

  • Hi! I'm new to this forum so pls be gentle :)

    I'm making a simulation game that based on % chances. So what i'm wondering is what follows:

    1. Is choose(1,2) the same with floor(random(1,3))? - what im trying to accomplish here is there's a 50% chance of pick 1 or 2.

    2. How about balance/fair chances, does this two conditioning the same 50%:

    Variable: Percentage

    floor(random(1,3))

    if Percentage is 1, then shoot

    if Percentage is 2, then miss

    floor(random(1,11))

    if Percentage is <= 5, then shoot

    if Percentage is >= 6, then miss

    Thank you in advance! :D

    Tagged:

  • You do not have permission to view this post