lionz's Recent Forum Activity

  • The randomness comes with using choose. I think if for each location you set a choose() with the possible enemies it is not a lot of work if you know the choices already. Also under each location comes the size, it make sense to run an event for each location.

    e.g. ...

    if location=1, repeat 3 times, push choose(enemyA,enemyB) to back of array

    if location=2, repeat 4 times, push choose(enemyA,enemyB,enemyC) to back of array

  • If the enemy values must be 1,2,3,4 then use choose(1,2,3,4), 4 separate values. Or use enemy names, it might be easier.

  • If there are not many locations then you could just run events by location, if loc=2, repeat 3 times push back of array choose(1,2,3,4). I can't see a need here to make a function that reuses the code for all locations, might as well just force it with enemy types in the 'choose'.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • No idea, it's corrupt or something. You download it and tell me if you can open it on your end.

  • Your actual file is broken it won't open

  • What crash, where? There's no instructions.

  • If you're saying the item is in inventory already when you go to equip it then ok there is no need for a variable. To equip it you already have logic for this to click on the item. First you must remove the equipped item so for that you can pick the one which is in the slot and move it out.

  • I have now figured out what I had to do, thank you all for your help

    You did or one of the responses did? Please post the result so others will know when searching the forums.

  • First move the one in the slot back into the inventory then pick the new one and equip it. Use a variable on items to determine which is the new one to equip for picking in events.

  • That is not a good fix unfortunately you will run into bugs as you expand the inventory. I've seen the events and what is happening you are setting it back to 0 and then to an appropriate value every tick, flip flopping between 0 and the correct value, it's better to just set it once for simplicity and to avoid bugs. Also you can get performance issues from doing this.

  • I didn't see a typo just guessing. If what you sent me is the latest version then there's no problem from my side, I've never recreated that bug.

  • Because you're toggling an instance variable on an object which resets to default state when you return to layout. You should simply set global variable between 1 and 0 only, no need for a button variable. On button click - > toggle global bool SFX

lionz's avatar

lionz

Member since 5 Aug, 2013

Twitter
lionz has 75 followers

Trophy Case

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

25/44
How to earn trophies