zero_rogue's Recent Forum Activity

  • Ah-ha! I see where the train of thought got derailed. I thought any reference to a Family affects all sprites in it, however if you reference a single sprite in a family, much like they do with other sprites. It keep all other family references to that sprite. The wiki entry was really misleading in this..Thanks for the help.

    This was the hardest hurdle to get over for me, I already have the movement added in(using a jerry rigged system to be overhauled with families now ^_^) as well as the know-how to complete the remaining tasks, you may not know this but I've been lurking the forum and wiki off/on for about 4-5 months now.

    Ive already taken the plunge into this project and I'm not to be deterred. I'll drop the link to the project later down the road once I get a working model of it.

  • Ok let me explain what I'm doing... I'm basically making an turn biased Rpg style game. So I have multiple units of the same type(ie multiple copies of the same sprite each with its own numbers) on the field. I'm also going to have a leveling system so the more kills a unit gets the more improved its skills will be.

    What I need is a system of events that I can use for the attack of the units, so that i can click on the attacking unit, it grabs the attacking value, then click on the target,grab its defensive values, and the attack will be calculated then attack.

    The forumula I use for attacking uses the

    power, Accuracy, and weapon Range of the attacking units pv

    defense of the target unit's pv

    It also uses the Distance between the units.

    It also uses a few global variables but those can be added easy...

    I hope that clears things up on what I need. I think long story short I need something that can identify each individual sprite on screen then take the pv or other values from them. something like a Unique Id however I think UID's work only with each sprite.

    about families:from what I understand Families only work on all sprites in the family, meaning they can only retrive/add values to all the sprites in the families.

  • This will not work because I am looking to access the information form two unique sprites (private variables, and xy for one). Like I have said these sprites will be different each time I need to use this event, so I would like to have a system that would allow me to plug in the information from different sprites.

    From what I've seen Families do things globally only, and each unique sprite has its own values, I was thinking of using families to designate Each sprite but I don't know how to do that. (and couldn't find anything on the wiki about it.)

    let me say this again, In my project I will have about 40 sprites that will use this specific event in any combination.

    In case I was not clear by Unique I mean an individual sprite(with a unique id), not just all the same sprites. From what I've seen Currently of construct It will get the unique id of any individual sprite you reference previously in the event, however in this case I need two different sprites that cannot be referenced. (not without making approx 1,500 events, 80 events if I need to reference one of them.)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I'm currently working on a project where I'm developing a system to designate the attacker and the attack then using a formula determine using private variables how much damage is dealt. I have all the formulas and concepts done, I just have no idea how to implement it.

    The problem is:

    I need some way to take Private variables from one unique Sprite and Private Variable from another unique sprite, as well as the distance between the two. then using a formula, subtract the hp from the second one.

    Both Sprites can change throughout the game so ideally I would like it all to taken care of by one event instead of having to write an event for each sprite(since there are going to be around 40 sprites used for this).

    Thanks in advance for anyone who can solve my problem.

zero_rogue's avatar

zero_rogue

Member since 11 Aug, 2009

None one is following zero_rogue yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies