winkr7's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

winkr7's avatar

winkr7

Early Adopter

Member since 23 Oct, 2014

Twitter
winkr7 has 2 followers

Trophy Case

  • 10-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 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
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies