lionz's Recent Forum Activity

  • You'll probably need to use an array for this and I've created a very basic example here which does the following when you press 1 :

    • Generates random item list
    • Assigns the item to a slot linked with slot ID and the array position

    In short the way I make an inventory is to link the ID with the exact co-ord in the array, so slot with ID 1 has item 1,0 in the array, slot with ID 2 has item 2,0 in the array. You can then manipulate and move the data around however you want. Your generation of random items will probably be more complex than "choose" between items, that was just for this example, you could probably make use of number ranges that define item rarity and then item type.

    https://www.dropbox.com/s/6t6mm49g4a4pe ... .capx?dl=0

  • Even though it is in a family you can still pick it as an object so you just create the object type.

  • You don't need to make it so hard for yourself by grouping Enemies and Friendlies into one Family then trying to separate them out. Just reference the enemies in an Enemies family if there are multiple enemy units and Friendlies in their family, otherwise you're going to constantly stumble across weird problems with the picking that need investigation. Your picking here doesn't really reference the Unit correctly, the isFriendly condition is referencing the Unit that is passing the range, so itself, and not the Unity that was just passed. If you have separate families as suggested then you can reference them much easier such as if Friendly X > Enemy then Friendly set anim etc.

  • set text to ""&sprite.V_name

  • It is continually finding paths, you need to take out the 'for each'. I have some experience with this when I tried making a theme park game with pathing guests . It's better to just say if moving object var is this then find a path.

  • Yeah don't do that. I was talking about creating obstacles to block paths so the player has to go a different way. You said you tried this, but you were walking through the obstacles. It's because the player cannot see them, you need to regenerate the obstacle path at the point of creating the obstacles. The player will then find a new path as the previous ways will be blocked.

  • Who is that in response to? Yes it would be but nobody suggested to do that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Compare the X so if enemy is moving and player X is greater then animation move right, player X is less than enemy then animation move left.

  • I'm not really sure what's going on with the above response but yeah you can either increase the rotation speed so it's no longer 'smooth' but snaps to face the target location, or you can disable the rotation altogether and set the angle of the object to the pathfinding moving angle which would have pretty much the same visual effect.

  • For 8 direction the movingangle is the direction of movement so moving left would be enemy.8direction.movingangle = 180. When moving to the right then movingangle is 0. Up is -90 and down is 90.

  • To group objects in this way you add them to a family, when Enemy is overlapping Family.

  • Here ya go https://tinyurl.com/yb8bpwfy

    Dropping ipa straight onto the device or reverting back your version of itunes seem like the better options.

lionz's avatar

lionz

Online Now

Member since 5 Aug, 2013
Last online 10 Mar, 2025

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