lionz's Recent Forum Activity

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

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

  • Try Construct 3

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

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

  • On your events for destroy block on hit by the projectile, you can take the Y co-ord of the block at this point and set its value to a global variable. Then you do pick by evaluate, blocks where Y is less than the global variable, moved them down by 1 space i.e. 20 pixels.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 73 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