rocketfuel's Recent Forum Activity

  • Hello all!

    So I've kinda figured out how variables and picking instances works. I've got a layout with a spaceman who shoots and enemies who respond to him. I've got two instances of the same sprite ("robot") and I've figured out how to use instances and picking to make each instance react individually to the spaceman.

    Here's how I've got it set up:

    "robot" pick UID

    when "spaceman" is withing range ---> "robot" starts firing

    So, here's my question. How do I program this so that if I have 20 instances of the sprite "robot" I won't have to create 20 seperate events with 20 seperate UIDs to make all the "robots" act individually? Is there an easier way to do this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sure thing.

    Basically, I've got it set up so that when I press the button to make him face a certain direction, all at once he turns in the direction, fires a bullet and spawns the jetpack effects.

    You can see here (http://imgur.com/vjNQOnt) (no hyperlinks for noobies, how frustrating!!!!), the space guy and the jetpack effects coming out behind him. At this point I have pressed the "S" key once so that he faces right, fires a bullet and one jetpack effect spawns

    And here (http://imgur.com/1ViVshU) you can see that when I keep firing a bullet the jetpack effects pile up.

    Here (http://imgur.com/QuYeHFo) he is facing left, jetpack effects in front of him. I've pressed the "A" key once, so he turns left, fires a bullet and spawns one jetpack effect.

    And here (http://imgur.com/PWTIyy) he is firing multiple bullets, jetpack effects piling up.

    So, I just want one jetpack effect at a time. So far the only way I've figured out how to spawn the jetpack effects in the correct positions and layers and everything is tie them to the firing mechanism, but like you see that produces the piling up of the effects. Is there a way to inhibit the spawning of an item if it is already present on the screen or something?

  • Got my post working below, with links and all.

  • Hello again, everybody!

    So, I've got my jet pack guy who has a particle stream coming out of the bottom of the jet pack for like a fire effect. Cool!

    The way I have it right now, when I press the button so he's facing right, the fire spawns on a layer below him, and when I push the button so he's facing left the fire spawns on a layer above him. I like how that all works, but whenever I push the buttons any time after that it just spawns more fire effects. I have it so the fire is destroyed when he turns around, but I only want one fire effect to be present on the screen at a time and I can't figure out a way to do that.

  • So, I'm trying to animate my character using a machine gun a la Metal Slug. I've got the animation and I've got it set so that when I press the fire button the animation plays, but if I try and rapid fire the button the animation will start over each time, repeating the first two frames.

    How do I set it up so that the firing animation can finish and then repeat while I'm continuously pressing the fire button?

  • Oh my gosh, that was it. Thanks a lot. :)

  • Hi guys!

    I've been working on this space shooter game. The main guy has a jet pack on and I want some fire spray to come out. So, I created a particles object with just a yellow ball that fades out and I have in the events that every .05 seconds, those particles will spawn at an image point on the guy. That works just fine, but when I move the guy, the particles will zoom off in front of him. If I stop, they stop and if I move back, they will move back and meet up with him.

    What the heck is going on?!? I can't find anything in the events that would make this happen. Can anyone help? I've always tried spawning different objects in the same exact spot and they all do the same thing.

rocketfuel's avatar

rocketfuel

Member since 29 Mar, 2013

None one is following rocketfuel yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies