inejwstine's Forum Posts

  • Let's say I have a sprite called Ball and one called Paint, each of which has the SetColor effect on it. When a Ball collides with a Paint, I want the ball to become the same color as the Paint sprite. Intuitively I'd create an event that says:

    Ball | on collision with Paint ->

    Ball | Set effect "SetColor" parameter 0 to Paint.SetColor(0)

    Ball | Set effect "SetColor" parameter 1 to Paint.SetColor(1)

    Ball | Set effect "SetColor" parameter 2 to Paint.SetColor(2)

    That is, I want to read each of the R, G, and B values in the Paint sprite and write those to the R, G, B values of the Ball sprite. My problem is, Paint.SetColor(0) is an invalid expression, and I'm not sure how to access those parameters. I can set them just fine, just not read them.

    One work around I thought of is to give each sprite a R, G, and B instance variable and every frame set the SetColor parameters to those values, but that seems like an unnecessary duplication of data to me... unless of course there's no other way.

    So yeah, long story short: I can set the parameters of an effect, but how do I read them?

    Thanks.

  • 1. Thanks!

    2. What I meant was, would it be a single event with three instances picked, or three separate events, each with two instances?

  • Huh, you're right. That works just fine. Like I said above, I thought that "Pick nth index" meant out of all instances in the layout, not just those that are currently picked. Good to know.

    A couple other questions:

    1. If two separate collisions happen to occur at the exact same time (rare, but not impossible, right?) each will happen in its own separate event, right? Meaning, there won't be four instances to pick from in the event.

    2. If three instances all collide together (I don't even know if this one is possible; just want to make sure my bases are covered) then will there be three to pick from? Or would it fire off three separate events: one for the collision between instance 0 and 1, one for 1 and 2, and one for 2 and 0?

    Thanks so much for the help! :)

  • Hi,

    I have a Sprite called "Ball" and each has an instance variable "Health" (number). When two Balls collide, I want the one with the lower health to be destroyed. However, I'm not sure how to differentiate between the two instances involved in the collision. Here's the best I could come up with:

    <img src="https://dl.dropbox.com/u/32626868/Pictures/Collision.png" border="0" />

    Here's my understanding of what's going on:

    1. When a Ball collides with another Ball, the event is triggered and the two Ball instances are picked for the event.

    2. Each Ball's Health variable is compared. I want it to compare it's Health variable to that of the other Ball, but I'm not sure how to specify this.

    3. If the Ball's health was lower, it is destroyed; otherwise, nothing happens (once again, I'm not sure how to tell it which of the two Ball's should be destroyed).

    I have verified that the collision event is registering, but neither ball is being destroyed when it happens even though one's health is lower than the other. How can I reference specific instances involved in the collision to get this to work? I thought of using "Pick Nth instance," but if I understand correctly that means the Nth out of all instances, not just those in the collision, correct?

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks alspal! Also, I received this response from Tom:

    "It sounds like you don't need a Business License. This is only required if one of two conditions are met:

    • You are a state recognised business organisation (for example a Ltd company like us)
    • You earn more than $5,000 USD revenue from your Construct 2 creations

    Personal edition licenses are issued to 1 named individual, so you would each need a license."

    So until we form into a state-recognized business, we'll just need one copy each of the Personal edition.

    Thanks again!

  • Did some looking around, and this thread answered some of my questions:

    construct.net/en

    So if I understand correctly, our options are:

    1. Purchase one Personal License per developer. Each can use his/her copy on any computer.

    2. Purchase one Business License. Multiple developers can use it as long as it is on only one computer.

    3. Purchase one Business License. Only one developer can use it, but it can be used on any computer.

    4. Purchase one Business License per developer. Each can use his/her copy on any computer.

    But option 1 is only valid if we don't count as a commercial organization. Still wondering about that.

  • Hey there, I'm Josh!

    Recent college graduate in Computer Science, Animation Emphasis. I currently work for Imagine Learning, a company that makes educational software to help little kids learn English. I get to help make the little games that teach language concepts. It's an awesome company and I love working there, but I would also love to break into the gaming industry.

    I love game engines like Unity and Construct 2 that give anyone a chance to try their hand at making a game before making a monetary investment. If this proves to be my thing, I will definitely buy a license. I'm very pleased with what I've seen so far! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Hey there,

    I'm a total newbie with Construct 2, but I've loved it so far! A few friends and I are going to try to make a sellable game together. We haven't decided yet what game engine to use, but Construct 2 looks like a definite candidate. My question is this:

    What constitutes a "commercial organization" (which would require the Business Edition)? There's only four of us; two are fresh out of University and the other two have about a year left of school and we're definitely a very informal group that may not even stay together for more than one project. Would the Personal or the Business Edition be the right one for us?

    On that note, when one purchases a license--whether Personal or Business--is that usable by more than one person? Or would we need to purchase one license for each developer in our group?

    Thanks so much!