lionz's Forum Posts

  • 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

  • I never recreated the issue you're having with that 315 angle even on the original you sent or my updated one, not sure what happened on your computer. All I can think of is it's not switching because you have an older version where the throw animation has a typo.

  • Delete the bottom events for overlap. On your event for mouse click call a function. Create the function below that adds values to the player, like an Add Stats function. Pass through as parameters all the stats like items.crit items.armour etc. In the function set the player stats based on parameters. This means when you click the item and it moves to the slot it will run the function and add the stats, try this.

  • If you mean W+D down and running while throwing it looks perfectly fine to me same as the other 3 diagonal movements.