lionz's Forum Posts

  • Change 'on 1 pressed' to 'on start of layout' so it does the load on start of layout instead.

  • Also I fixed the other logic, it's one event now. There is no need to use global variables or multiple objects. I use a method of instance variables to track array position, have a look :

    dropbox.com/s/uff9hdnf7trftwo/imput.capx

  • email supportsol@construct.net with the file, they might be able to help fix the error. It is probably something quite normal from the look of it.

  • You really need to understand where the data is coming from before you can attempt that. Look at the array in debug view. The question and answers are one string and he pulls the info out using 'tokenat' which uses a divider between text such as a comma to differentiate one word to the next. Once you know exactly what is going on, I would do it by putting the stats in a separate file but the same order. In an identical way you can pull the data from it but the stats would be in a different array location, so where the question and answer is in Y=0, the stats are at Y=1. Then you can easily apply the same tokenat logic so if you select answer 4, then you can read stat 4 and apply it. Once you know what you're doing it is just one event to do everything, it's just about understanding the arrays.

  • He is grabbing all the question and answer data from a text file and storing each question with the answers in one cell for each question. Then he picks a random question. Answers are always in the same order though. He has 4 answers and 1 which is to detect the correct answer.

    Where the actions are for correct or incorrect, replace the text with add or subtract from a global variable. If it is different for each question you would have to add that logic into the text file with the answers and output it so if it said "Health" then it knows if you get a question wrong it would subtract from health, so create new logic in a sense, so you would need to understand what he's doing with arrays.

  • This post is so generic and vague, I'm not sure you asked a proper question?

  • You don't create separate sprites but rather you have 1 sprite object copied 3 or 4 times. You then use instance variables. So when you grab each object it links to 1, 2 or 3 of an array and then you make each sprite relate to those numbers. So the 3 sprites plus the 1 one smaller sprite are always in the layout view and you change how they look based on the items you picked from the array etc. Add me on discord #4434 if you want any more help or this will just become a lot of spam.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When you first add the 15 items to an array, say at Y=0, you can add the related object at Y=1. So you have Object A at 0,0 and the related object at 0,1. Object B at 1,0 and related object at 1,1. When you pick and delete the object from Y=0 you can also pick the related object at Y=1, say you are doing it in a loop which is likely, the object is at loopindex,0 and related object at loopindex,1.

  • Put the 15 objects into an array. Choose one at random and delete from the array. Repeat 3 times. While you are picking one at random, take another field from the row which is the related item and add it to a different array. In the second array you will have 3 items to then choose from to pick as the unique item.

  • Usually you have a key to attack and then do player is overlapping enemy, on key pressed : play attack anim, do damage etc.

  • Looking good, will buy if it's cheap enough :)

  • In project properties check if orientation is set to 'Any'

  • What kind of logic are you using to pick NPCs and ask them to find paths? This kind of logic is just more difficult than it sounds and it can easily get out of control. I once made a theme park style game with hundreds of guests and came across a lot of issues. I would say an easy way to make sure that the correct NPC is assigned the correct task is to use functions and pass the UID of the NPC through the function as a parameter, this gives a bit of control to it, more than if you just use NPC find path.

  • Sent an invite, pending...