jobel's Forum Posts

  • tarek2 yeah I did that to figure out what you were talking about.

    I was just showing you what I am working with. in some cases I use los to determine shooting and in other cases I am using it to determine length of a beam. The main issue is that its global and changes a different object's obstacles because they share the same family behavior.

    So when I clear obstacles for one, it clears them for all, which is NOT as advertised!

    you said this is by design. I wonder why? I'd much prefer a list of obstacles attached to one object. rather than applying it to all other object types in the family.

  • tarek2 okay, yeah I think I can see what is going on.

    it's pretty complicated the way I have things set up.

    but you see here I have a laser pointer for the turret, and a laser pointer for the ship, they keep going through each other, only one works at a time. And they share the LOS behav in the same family. (sorry I know its hard to see in the GIF)

  • tarek2 > > do you know if it also applies to families?

    Yes, the family you can count as one single object so the same rules apply

    so that does that mean I can't have the same Family objects using a Family LOS behav and target each other?

  • wow thanks tarek2 this is very helpful! do you know if it also applies to families? it seems to.

    I don't understand why out of the 3 Team2 sprites, the 2 to the right start as yellow.

    oh, also the issue I am having is with casting rays, not the bool HasLineOfSight. I'll try to replicate it.

  • I know I've had some really wonky issues with the Turret behavior when I added an object to Target, it would somehow work globally. I'm finding the same is true for Line of Sight. When I clear objects for a particular object, it clears them for different objects from the same family.

    Is this supposed to happen? am I using LOS clear objects wrong?

    The main issue I run into is... I have this one turret object and depending on which level you are in, sometimes that turret is friendly to the player, other times that same object is the enemy to the player. So I clear LOS objects at the start of each Layout and determine if those turrets are enemies or not and add them accordingly.

    Some strange things I'm seeing is somehow the LOS of the player is affecting the LOS of other objects within the family. But also LOS is sometimes just stops working. I feel like I am using it wrong.

    Any help?

  • thanks so much Cascade Games - very nice to hear!

  • thanks! also thanks for your honesty about it not being for you.. sometimes that's the hardest part; getting honest feedback.. I know there are fans of this genre, its just a matter of finding them and knowing how to woo them!

    I actually have been working on this since March 2019 so around release time will be 3 years! but only 1.5 of those 3 has been fulltime really. And even then I take side contracts here and there. Yes its been a hard long road. I don't know if I will do it again all by myself... I think I want to work with some people in the future. We'll see how this release goes... its an experiment of sorts, I'm not expecting a hit by any means. But I've learned a lot about myself (professionally) over the past couple years - more than I have doing private contracts.

    thanks for the kind words!

  • Eren that's great did you also do a Mac build?

    also do you have links to the game you are working on?

  • thanks AllanR you helped make it possible!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • finally finished the trailer!

    Subscribe to Construct videos now
  • can you post a simplified .c3 project file? its hard to tell from that snapshot.

  • what are you using those 'wait's for?

  • dop2000

    construct.net/en/forum/construct-3/general-discussion-7/changing-global-variable-160210

    I haven't actually tried it myself... I only use globals and locals that are only temporary.

  • I assume you have one element of the array that is a block of text?

    you can use find() and rewrite the string and reassign without whatever you find. you could use a combination of the left() and right() or maybe you can use replace()?

  • the problem is, global variables are actually "global". There are none that are scoped to just that sheet/layout. Global vars can be made anywhere in the project, what sheet they are declared on is arbitrary. what you are describing is a local variable.

    if you want those variables to be confined to just that event sheet, place all the events inside of a group, then drag all the variables to be at the top of the group. then each of the variables will be reinitialized each time you run the layout.