lionz's Recent Forum Activity

  • 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 supporticl@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?

  • Try Construct 3

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

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

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

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 75 followers

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

24/44
How to earn trophies