Squeedom's Forum Posts

  • I just cant get the random to work, the enemy will shoot once then roll right along until it is out of screen. And it shoots after 1000ms thats it.

    I am just going to set it on a timing pattern so it shoots ever ****ms instead. Random would have been nice but it just aint working.

  • > I do not understand #2.

    >

    It's inverting the condition, making it the opposite of what it normally is.

    Let me rephrase, I understood the direction. But what purpose does it serve in this situation?

    I think I have the ammo set up well enough, is the random not working because I did not do step 2?

  • I do not understand #2. And the random code is not doing what you say it does. It makes the enemies fire once all at the same time, then they travel offscreen.

    Will you look at my cap?

    http://www.easy-share.com/1908476354/Subhunt.cap

    Oh, and if you do, dont look at your highscore, it crashes the game.

  • I haven't looked at the cap, but I've got a few tips...

    If you want enemies to fire only when on-screen, just add a condition "Is On Screen", I believe sprites have that.

    Then add another event that checks when the sprite is out of visible area (Negated On Screen), trigger once, set the 'ammo' to 2. So, whenever it flies onto screen, it would fire two bullets, then as soon as it flies out, it would refresh ammunition.

    For random firing, try for every 1000+random(2000) ms. That will randomize it a bit between one and three seconds. Fire a bullet, substract by one, stop firing when it hits 0 ammo.

    When you say add condition "is on screen" do you mean to the enemy or the bullet?

    And when you say Negated on screen, is that in system or on the enemy sprite?

    Also I cant get your random formula to work. Do I put it in as written?

  • Thanks. I will try these soon. Haven't had the time as of yet. If anyone else has a suggestion, I would be glad to look at that too.

  • This is a repost. I apologize but the last one got bogged down in other conversation and I have made addendum's.

    I want my enemies to randomly fire at my player, with a maximum of 2 times per each enemy.

    You see, they are moving in and out of the screen, I want them to fire twice each time they are on screen, then travel off screen. I dont want them to fire twice in a row though, it should be random.

    The also need to shoot straight up.

    I used a "ever *** milliseconds-spawn bullet" but it shoots sideways, so I put a "rotate 90 degrees clockwise" to shoot up. It worked but after every first shot it will begin shooting sideways again.

    http://www.megafileupload.com/en/file/1 ... t-cap.html

    This is the .cap

    Can anyone help? Thanks in advance.

  • Worked like a charm. Thanks.

  • How can I make a boundary that the player can not exit while the enemies can?

    Think arkanoid or breakout, theres a wall the player cant exit.

    But, then, unlike those games, the enemies can.

  • Solved. Put the file into audacity and exported it.

  • I have 4 wav files in my game for FX. The 4th one just makes clicking noises though.

    Im doing

    Load file

    Play channel

    in the events, and the channels match every time i try it. The other 3 wav's work fine using this method.

    I think it has something to do with the channels.

    I have tried switching it to 4 but it still has the issue.

  • Why not, isnt this a behavior and event situation?

  • Template? I don't see any area in the menu that offers templates.

    EDIT: I found them. File-New-New Template

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This was exactly what I was looking for. Thanks so much.

  • I want my enemies to randomly fire at my player, with a maximum of 2 times per each enemy.

    You see, they are moving in and out of the screen, I want them to fire twice each time they are on screen, then travel off screen. I dont want them to fire twice in a row though, it should be random.

    Any suggestions. I haven't seen any tutorials on enemy fire if someone would like to point on out to me though, I'd much appreciate it.

  • Thank you for the suggestion. The tutorial was very helpful in many aspects of the game I am currently making. However it did not address this question at all.

    I want the enemies to have a point value, and upon destruction have those points added to a score. Which would then be displayed in the UI.

    The tutorial showed me how to make a health point value but not a point value.