winkr7's Forum Posts

  • I tried all the permutations i could think of. How do I get a value back from a function that uses set return value?

    Here is picture of the error I get in my call to the "getit" function which returns a single number via set return value.

    Thanks for your time.

  • Hundredfold I appreciate the suggestion, but it is an XSquare variable--I think the problem has to do with how to compare one XSquare with many XSquare--how does it know to limit the first to one single instance and then the next reference to XSquare is every other instance?

    But thanks for you comment.

  • I want to find sprites that overlap just one other sprite (my sprites are called XSquare in my code). I tried the "for each XSquare" approach pictured below, but it doesn't select anything. How can I find the set of all XSquare objects that only overlap one other XSquare object? (I can find all the ones that overlap, but not all the ones that just overlap one).

    Thanks for your time.

  • Thanks justifun. I tried it out, it works just fine.

  • Great. Thanks R0j0hound. I will have to figure out how to install an effect.

  • Thanks Rjan. Flash can be done in the image editor and its a behavior already. It would just be nice to put a red outline on something when it got hit instead of making it flash.

    But you make a valid point.

  • I looked for this behavior but could not find it. If you took the sprite image, turned it red (or whatever color), expanded it a few pixels and then put it behind the regular sprite it would outline the sprite in red. You could make this flashing red or perhaps remove the orginal sprite and just have the outline. It would be useful in the same way a flashing sprite is useful.

    thanks for your time.

    Winkr7

  • Okay, thanks for the help 7Soul.

  • Thanks 7Soul. I just click here and there and hit X til an Else comes up. So what you are saying is: I want the Else at the top of a complete box and the action that appears on the same level as that else is that action that happens when that else is true? I read the section on understanding events, but the relative size of the boxes is never explained.

    But then you say:

    "The else must be together with other conditions, or on its own."

    My else statements are on their own. By together I assume you mean "in the same box".

    thanks for your time.

  • I know you can only use text or numbers as parameters to function calls. I just want to know if this is something

    we all live with or if there is some way to get around it. In my example I pass a string that is really the name of a family or object. I then if else on it to get a match.

    Is this the best way to do this?

    Thanks for your time.

  • Hello;

    If I have two instances of the same object how do I copy one to another? I don't want to create a new instance, just copy some

    variables from one to the other. I can't say instTwo.val1=instOne.val1 since as soon as I have an instance of an object the old one (from the same object) I had is lost to the event since the first one takes its place. Do I make local temp variables and save instOne.val1 to temp1, then get instTwo and set instTwo,val1=temp1. That seems convoluted. Is there a better way?

    Thanks for your time.

  • Right codah, it doesn't make sense. I fixed it with a subevent and got else to work too.

    Thanks for your time.

  • Hello;

    I have hit x and shift x, clicked everywhere in the event sheet I can think of. How do I add Else to this (event 5).

    I know it is possible since I got it to work once before.

    Is there a tutorial on how to add Else to your events?

    Thanks for your time.

  • Great. That fixed it, the automated updated is qreat too.

    Thanks Proxymity

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello;

    I wanted to install a third party plugin--rex plugins. I haven't used them yet, but at startup of Construct2 I get the error message you see the picture of. I thought plugins were independent of Construct2, and that if I didn't use them they wouldn't have any effect.

    Contruct2 still runs after this, but I now always get the message.

    Should I delete everything and reinstall and avoid third party plugins? Or does this error not matter?

    thanks for your time