lionz's Recent Forum Activity

  • I don't think it's possible if you have solid set as an obstacle because they block themselves and can't all find a path right next to the player. I don't like to give the object doing pathfinding the solid behaviour.

  • What would you like them to do instead ?

  • Don't use trigger once, not required and probably it's fixed.

  • You could just keep the Gameplay related things in the Gameplay event sheet. If you must do it like this there is something called 'include event sheet', you can include your Functions sheet into Menu and Gameplay so it will read Functions all the time. You could also do it another way and taking your Functions sheet as a 'Main' one, then assign this to every layout and 'include' the Menu and Gameplay event sheets. Right-click on event sheet to include.

  • Should follow the properties of the first created instance which should have 'set angle' disabled

  • You run through the functions and end up with 'if EnemyBasicMelee' then do an attack. You could just use this as the only condition and scrap the other functions.

    Also one other thing to note you don't need to forward a UID anymore, you can use the 'copy picked' option in the function, if you tick this then it keeps the picked Enemies instance. Also I disagree about the 'messy' code, I would keep it all in one function when it's simple enough.

    edit :

    And to fix this original problem you need to send through the variable in the second function, so instead of Enemies.UID it is enemyUID the variable.

    And another thing I just noticed your timer in 2nd function also won't work well as it will not pick an Enemies instance, that needs a condition like pick where UID = enemyUID unless you use the copy picked method I mentioned above.

  • The middle function doesn't pick any Enemies instances and i'm not sure the need for it or what's happening in there. You need 3 functions to run an attack? It's a bit convoluted just put it in one function then nothing can go wrong.

  • You can use set size and reduce the height and width every X seconds, set the value for height and width to something like self.height-4 and self.width-4, adjust 4 to make it reduce faster.

  • In the layout properties bar there is an option for event sheet

  • Based on what you're describing in the original post you need to have 'left is down' play animation and 'right is down' play animation. The event for is moving, play animation is not required.

  • My first thought was to activate the animation with the corresponding direction arrow key.

    Your idle animation plays when pressing left and right ? That is kind of unusual, how do you move ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Probably 1 because 2 means you load all the graphics in one object which is bad for image memory usage. To store the loot though like in an inventory I would use an array.

lionz's avatar

lionz

Member since 5 Aug, 2013

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