lionz's Recent Forum Activity

  • The answer to the question is the same as above. If the global variable is a certain value then you set certain sprites on the weapon or do anything you need to do for the weapon to use that ability.

  • When you save the game it saves the current state of the game including persistent objects and ones that were destroyed. I don't know how you managed to save after one was destroyed and load and it had returned unless you loaded a different save game.

  • You could have a global variable number and add 1 to it when you press right, subtract 1 when you press left presumably. Then in other events you have conditions GV=1 - set ability 1, GV=2 set ability 2 etc. If you have bullets shown in game, based on GV you can set the animation of the bullet and damage stats etc.

  • Sounds problematic, the picking of the new instance, it might not be available yet in the same event. You would have to pick all instances again and then define the new one somehow maybe on last created, but the code may not see it. Better to just store as a global variable then all the problems go away.

  • You've moved the condition though. Before it was a sub event of the top condition and now it's underneath it at the same level. So maybe that was your problem.

  • Is this for practice? Because that variable wouldn't do anything

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It does work that way, that's why I'm trying to understand the problem here. When the loop stops it runs the sub events once more, but it would only run it if the condition is true, it would mean the value to stop the loop is found at the end of the array.

  • What is height-1 value of the array and what is the value printed for loopindex on the middle event? Are they the same? When you stop the loop it will run the sub event and if the condition is true then it will run the action.

  • On button clicked is for a click anywhere, you need to use on object clicked and select the bush object.

  • Because the collision box is small for the second animation. Set them all to the bounding box and you should have no problems.

  • When you click on the instance you are getting all of its data, but you must store it somewhere as I mentioned so on the actions right-side of the event sheet you can set a variable to object.name which will be the name variable of the one you just clicked.

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 79 followers

Trophy Case

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

26/44
How to earn trophies