jaytee's Recent Forum Activity

  • I forgot to mention but I actually used your suggestion to use Set value of Curx,7 to array.at(Curx,) then add a number :)

    and It working fine now!

  • AllanR

    THIS SOLVED IT! THANK YOU SO MUCH!!!

    I have always been afraid to use array for a long time but recently i have learned and been using it and everything i used it on has been working up until now. This is now another knowledge added to me regarding arrays.

    I thought i had to use For each XY element because my understanding of that is if i only use FOR EACH X it wont read the Y index only the X index.

    Thank you all for you time to see my post! You have no idea how happy i am right now.. !!!

    umarfarooq AllanR

  • Thank you for your time to reply!

    "Curvalue is the wrong thing to use, it will just use the end of the row so 200 in this case."

    IS THIS REALLY TRUE?? I DIDNT KNOW THIS THANK YOU!!

    But what you suggested wont work for me. I dont want to change the value of Array.at(array.curx,15). Im using Array.at(array.curx,15) just to compare it to a number then add a value to a different Y index which is at - Array.at(ArraycurX,7).

    But still thank you for your input

  • 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..

  • Try Construct 3

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

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

  • 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 !

jaytee's avatar

jaytee

Member since 2 Jun, 2019

Twitter
jaytee has 1 followers

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies