DogeDev's Recent Forum Activity

  • You do not have permission to view this post

  • What is your bullet speed?

    It's 1000, but, i don't see the speed like he's gonna mess up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > > Side scrolling or top down? Either way, just add a random amount of angle to each bullet when created after you've set it's target.

    > >

    > > So for example something like:

    > >

    > > Bullet is created >

    > > Rotate 360 degrees to mouse.x, mouse.y

    > > Set angle self.angle + random(-5,5)

    >

    > Oh, i almost forgot, thanks for the code buddy! And, i have a question about your code, why is necessary the rotate 360 degrees?

    Angle of motion should work as well, does your bullet have movement? Can you post the relevant code section?

    360 is necessary for that event because the parameter is the max degrees the object can rotate toward the object in a tick. So if you do 360 it can set the angle in a single tick.

    Hmm i see, so, i'm gonna upload the code that i used, and, other code that i tried to see if something happens, but, none of these worked.

    Link 1: imgur.com/a/2OTNVQO

    Link 2: imgur.com/a/5IGXnLm

  • Side scrolling or top down? Either way, just add a random amount of angle to each bullet when created after you've set it's target.

    So for example something like:

    Bullet is created >

    Rotate 360 degrees to mouse.x, mouse.y

    Set angle self.angle + random(-5,5)

    Oh, i almost forgot, thanks for the code buddy! And, i have a question about your code, why is necessary the rotate 360 degrees?

  • It's a question of mine, and, I was wondering if I could use it or not.

  • Side scrolling or top down? Either way, just add a random amount of angle to each bullet when created after you've set it's target.

    So for example something like:

    Bullet is created >

    Rotate 360 degrees to mouse.x, mouse.y

    Set angle self.angle + random(-5,5)

    It's possible to use Angle of motion in the bullet behavior? Because i used it but, didn't worked, The code i'm using is:

    On Left button pressed

    Every FireRate Seconds

    Pistol spawn Bullet on layer Bullets (image point: fire)

    Bullet set angle of motion: round(random(-10,10))

    But, somehow, it didn't work.

  • Hey DogeDev, leaderboards are not implemented in the new arcade yet. See this post:

    https://www.construct.net/en/forum/scirra-website/website-issues-and-feedback-35/new-arcade-private-beta-145764

    Oh, didn't knowed that, really thanks buddy!

  • Ay bois, this is jut an simple question, that, is how to make an decent spread in Pistols/UZIS/Rifles and more. It's an 2d game and, i want an simple and good spread to use in weapons, somehow i tried 4 codes and they didn't worked, and, i'm lazy to think more or just make an spread with duct tape & glue. So, if you know, please tell me!

  • You mean gradually? Try lerp:

    Bar set width to lerp(self.width, 500*(Player.health/100), dt*2)

    Thanks, it worked!

  • Bar set width to 500*(Player.health/100)

    Hey bro, do you know how to drain the health bar when the player got hit? Like in the video?

  • Bar set width to 500*(Player.health/100)

    Lmao didn't thinked that simple math, but, thanks anyway.

  • Ay bois, so, in my game, i want an health bar, that i can make in every width ( not only, set the width to player's health ), like the width being 500 but, the health of the player just being 100, and, the width scalling with the 100 HP. If you know how to make a health bar like i said, or, the health bar of the video below, please, tell me!

    Video: youtube.com/watch ( He's at the right time )

DogeDev's avatar

DogeDev

Member since 15 Mar, 2017

Twitter
DogeDev has 5 followers

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • x3
    Popular Game One of your games has over 1,000 players
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies