hgstudio's Forum Posts

  • 7 posts
  • Hello C2-ers...(?) :P

    So in my project I'm currently doing the following...

    Every x seconds

    Create random object from family x

    Random object is then either destroyed by colliding with the player object, or is destroyed offscreen

    For the life of me, I can't figure out how to only create a single instance of each object from the family. Once each object is created/destroyed once, the round needs to end.

    Any help would be immensely appreciated!

    Thanks,

    HG

  • Thanks for the info Dasat. It's given me a few ideas, but nothing concrete.

    If someone could take a look at the capx I posted and give me any thoughts/advice, I'd really appreciate it.

    Thanks!

    HG

  • *Bump*

    Anyone have any insight?

  • 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 working on a project and need some help/ideas guys!

    I've got an "interceptor" type game where objects randomly spawn from the top and drop down for the user to "catch" at the bottom.

    The problem is, I need each object instance from each family to randomly spawn only once, and then somehow tag that object as "already spawned" so it can't be spawned again. I've tried multiple things, and nothing is yielding the results I need.

    Below is a link to download a capx of my project. If someone could take a look and offer and advice/suggestions, I'd be incredibly grateful!

    Example capx

    On a related note, I'm also looking for a way to dynamically load the vehicle images on the fly moving forward. So pretend there's some kind of admin that images are uploaded to... I need the game to somehow take those uploaded images and use them for the object instances in the families.

    Thanks in advance for your time.

    HG

  • vtrix

    Thanks so much for the reply and the capx!

    I think I'm failing to see how this addresses my issue however. For this to function in the manner that I'm looking for, hitting the "create" button would only yield a single instance of each object in the family. Once all 6 objects have been created once, it would no longer generate anything.

    Does that make sense?

    Thanks in advance for any further insight.

    Nate

  • Hello!

    I'm currently building an "Interceptor" style game where objects are randomly spawned from one of two families and drop down from the top. Upon the user hitting these spawned objects, they blow up and accumulate point values.

    My problem is, I want each object from both families to only spawn once. I need some way to set an instance variable on the individual objects in the family once they're chosen and spawned so as the next time the game goes to pick a random instance from either family, they won't choose objects that have already been used (chosen).

    Does anyone have insight as to how to accomplish this?

    Any help/advice is greatly appreciated!

    Thanks,

    HG

  • Hello everyone!

    I've just recently picked up Construct2 and am trying to create my first game. I've been going through tutorials and the forums for quite a few days now, but I'm having trouble finding some of the things I'm looking for.

    Basically, I'm creating an "Interceptor" game where there's a vehicle of some kind at the bottom of the screen moving left to right trying to "intercept" the correct answers to a single question as they float from the top of the screen down. I need the answers to randomly pick from a set (an array I assume) of predefined answers and need a way to decipher which are right and wrong.

    I'm about 50% of the way there framework-wise, but I'm having a lot of problems pulling the randomized answers into individual objects as they're created.

    If there are any tutorials that you're aware of the detail similar functionality, or any advice in general, I would REALLY appreciate it as I'm definitely having some trouble getting the functionality I'm looking for to work properly.

    Thanks in advance for any help anyone can offer.

    -HG

  • 7 posts