ry2009's Recent Forum Activity

  • Is it important for them to go in set directions? Otherwise you can make them bounce off each other, or have the system change their direction of movement every few seconds. Another way is too have a collision event to make them specificly change there angle of motion to something else if direction is important.

  • It doesn't have any change in effect I don't think. I've used both of the ways you described and I didn't see any change.

  • I was just wondering if there is a way in construct to clean up the z-order bar? For larger layouts, having 50 or more instances of something like "wall" makes it difficult to set other objects in the z-order bar. Can you set up a sort of broad classification for multiple of the same object to represent it in the z-order bar?

  • Thank you for your replies and suggestions.

    I was able to figure out the issue. So for future reference, based on Blacksmith's suggestion, it would have been nice but the objects I was using where not all the same. It was more of a mix, like having four blue cards, three red, and two green. So it couldn't be applied in this case, but I than read up on how to create a family. What it does is sort of create a hierarchy of objects and so if you assign the solid behavior to the family, all of the objects in that family will have that behavior. After that, I was then able to apply Blacksmith's suggestion to the family. Works like a champ!

    scirra.com/manual/142/families

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In short-

    -I'd like to make a button that selects a random set of objects and set its position to some where else.

    -the action will be used again on occasions, so an object cannot be selected twice. once it has been picked, it shouldn't be picked again.

    Intended purpose-

    card game

    In detail-

    Say that I have a bib pile of objects in-game, and I want to make a button that will pick one of those objects at random and stick it some where else.

    my first attempted was-

    "I'll make a global variable, and when I click a button, it will set the variable to a random whole number between x-y values. If the value equals the UID number of an object, that object will then be set to position a."

    Problems-

    -if you have about 100 objects, it would be insanely tedious to make a statement that says, "if UID is equal to this global variable, then set position here." for each and every object.

    -once an object is pick, it should not be able to be picked again, this method will not do that because it will still pick any of the same values it used during the last action

    Any suggestions?

ry2009's avatar

ry2009

Member since 22 Jul, 2013

None one is following ry2009 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies