lionz's Recent Forum Activity

  • Not sure what you were trying to achieve here, if you have a loop that runs the function until the end then it would only show the question and answers from the last entry of the loop. Maybe you should be using a variable instead of loopindex to grab all the data for the first set of questions? Then the next question you would add 1 to the variable to get the next row.

  • Add a short wait before you set bullet enabled in that function. Also you can't just set position of that thing? you must destroy and create a new one each time?

  • There's no loop

  • If you mean that inside the function there are actions to apply to object with the string flee then you can use conditions inside the function object.string=flee to pick the right one.

    If you are calling the function in an action from the object with string flee and you want to pick the same one then you can send the objects UID through the function as a parameter, then inside the function you can pick object where UID = parameter to ensure it is the same instance.

  • When you find the target you should then apply effects in the same action, you can use one tidy function that applies status X from attacker X to target X, you can send both through the function as parameters. Sending UID through ensures you are picking the right target and it shows up in logging, it's good for minimizing bugs and gives you some control within the loops.

  • Is this because you are using a for each for the attack and then a for each for the status effect underneath? I guess it wouldn't find the instance if it was destroyed before the second event, but you could have them as one event. Status effect can be a function, you can pass the UID of the player through it so you know it is being applied to correct instance and if it was destroyed then function wouldn't do anything.

  • Ok I think I understand the problem you're describing but the point of the for each is to run through each instance to check which ones match the conditions and you can pick them, saying they must be 0 and 1 doesn't make a ton of sense. What are you trying to achieve with the loop or what data are you unable to gather?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I'm understanding it correctly you need descending from high to low?

  • If it existed, why would you need that?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • In the car sprite object there is 'pick by UID', you would use car pick by UID 1 - pin graphic 1 to car. Or a similar condition for compare variable if you are using that.

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