Gearworkdragon's Forum Posts

  • Ok ive got a party menu where it got one base bar for each party of 6 and there a variable control check all party member 1-6

    and each of the text and sprite are created on top of Partybar in the image point. My problem is that the code to loop check through all of them and update them based on overlapping to the party bar because there is only 6 different party bar object. And to check each partybar's variable is not working and yet it works for the first index of the loop but it wont continue on the rest and I cannot for the love of god figure out ive tried every different instance pick option I've tried all the system loop.

    And yes it must be in a for loop because there will be times when you will have only 2 to 5 party member at a time and i want it to quickly build a battle party menu and place the proper stats to be shown on it.

    All the reference for the code to pull the data from is in the array as shown. I Know that its looping through but it wont update any of the others. I am baffle to why it wont. Ive tried everything. IF you are still confuse about a part please tell me cause this is needed to work for future project such as switch party member knowing what you have currently. And such.

  • Well i am actually working on make a pokemon engine and I have no problem sharing my events since its huge and only still only at 109 event.

    You are going to need to have the paid version since there alot of variable and checks and im using like 20 arrays and checks.

    Best plug in to get is CSV to array plugin. Trust me it will save you like 50 to 60 hours. plus you can excel make your own array without doing the set array action forever.

    Atm im working on the Pokemon battle screen i already got the attack down done to enemy....Its a long formula lol.

    So just email me question on which part you are working on and I can try to walk you through them as best a i currently can.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This sound alot like doing impossible things like breathing in space. I have a few question is there a way to make the app store save the image as a file in the host computer file system and then force import it as a file into the app. Through some Ajax fancy magic ? If so then it should it be matter of saving the image file to the host device through its own file system or to force create a folder in their system for your app and then have it save the image to there. Or least that what ive observed from other professionally made app.

  • well it would be too easy to just give you a capx i tell you what. Write down players attribute that you want and then on a piece of paper write down for the Rows to the attribute you want such as this name, power, defense, speed and next write down the colume setting player 1 2 3

    so it should look like this

    Name:power:defense,speed

    Player 1

    player 2

    player 3

    Now a homework for you what is the value for this array.at(0,0) and array.at(0,3) And next tell me what is the width and height and depth of this array. If you need help with figuring out the array go read up the manual and their expression

    The reason why i am asking you these question is because you need to learn the fundamentals of array before I let you head deep in a capx anyway.

    keep in mind the first row and column is always x,y coordination of 0

  • a couple of question did you import the files for ajax to get the files from ? and can you not use rex csv to array for this very same function since his is like the exact thing you are trying to do and it build the array through imported excel files.

  • If you want something simple like on click button go to layout 2 then just add the object button and do button is click condition then the action go to layout 2. its the easiest thing to do.

    There also the on mouse object clicked onto sprite that turn a sprite object into a button like object. and just add the action.

    Or you can put in the nuke launch code into a text field and then sprite hover over the sprite using mouse over the button.

  • if you want a really easy array builder look up rex plugin for CSV to array. It like a format maker that translate excel csv format and load it into array using Ajax.

    Id would start small with it first use like 4 player and their stats and see how the interaction goes and if you have a paid one get ready to learn function or else you will run outta event room.

    Ive tried to make an rpg form with just under 100 event and using no function....that just impossble lol and soccer games are like rpg in a lot of ways. So id start learning arrays and function to your advantage.

  • I think hes looking for group ? or function? . Remember trigger type event run one time so as long as all the condition are true.

  • yeah im using the start index of 1-6

    And then using the value of loop-index for the Y coor I do have another question about this.

    Does the end index for the loop actually end the loop as in stopping the loop from looping infinite or do i need to actually put int a condition for the loop to stop.

  • Omg thx you that solved everything

    This is solved so yes if you are using rex(csv to array ) and need to update value use Int(value).

    Also for the range problem id figure out that its the system For loop start index is where you need it to start and end is where you need it to actually end

    Oh and id recommend using function for this.

  • Ok well i found my stupid little problem you guys were right that it is being used as a text. This Is madness cause im using Rex(csv to array) plugin apparently it parsed every value in the CSV to a text format into the array.....WTF how in the hell am i suppose to fix that.

  • Hey Rex i am using your plug in but i have a bit of problem i think the value i am using for stats and such are being treated like texts is that intentional cause that just mess up my whole plan to use it.

    This would explain why i cannot use the values with a math operation.

  • Yeah i get that but when i try to do that with the array it will alway use the first value and never the added math.

    so for your example it would just use Enemy.baseRange

    Cause my current not working formula would be something like after chosen level has been selected

    For each X/Y

    System compare two value which is alway curx = 1 cause there is one enemy at any given time for this formula

    But things gets a little hairy cause the first value is the name of the monster so id like to skip this and start on cury 2 and then move forward until Y9 and for each value id like to update it 2 point per level so Id would have thought it would be like set at array at X=1 and then CurY to (Curvalue + (2*Array,at(1,10))

    for example the forumla would end up looking like this 21 + (2*2) which would equal to 25 for level 2 and then 3 would be 27.

    Ok new update is that I can do it through just a simple math without using array callback and it did work but Why doesnt it listen for teh update math. One would think it would just be curvalue +number .....but apparently it wont even do that.

    Unless if function being weird that i have to include parameter for such simple math ?

  • Ok two question.

    One Is it possible to select a range of array to be update with a simple formula such as this array.curvalue+(5*level) and that level is in the array spot of 1,10.

    Ive tried to manually update teh array through a simple expression using for each x,y of the array. And then each current value to be +5 ....this doesnt work I do not know why.

    apparently the contruct two array value will not update through expression of math but just straight first value of what ever it is.

    And 2nd question is that Can I use the arrays in a way to auto update itself when leveled or do i need to make a shit ton of variable to be call back n forth like dumb pirates on a sea lol

    The idea here is that Once i update the array i can use the value from it for calculating the battle scene such as if you attack first check your own player power level and combine it with your own ability and then hit the enemy but wait let check the enemy array defense value to reduce the damg done.

    Ive done it before not using array but id like to do so in a smallish functional way without doing hundreds of events. So far with oosyrag help ive figured out how to choose the monster and have it updated the stats on the battlefield for a base stats but now i want to update its stats in relation to the chosen level.

  • I too would like to see this feature to be done as well. IT would make it really easy to control rpg games way easier rather then having alot of arrays just for a couple of variable