winstreak's Recent Forum Activity

  • The yellow square is snapping into the tileset which the Pink square does not have. So when you click a square the pink square goes to the origin of the tile you picked with the center and matches its center there (So it does not line up).

    Technically setting the origin of your pink square to the center fixes - not sure if that messes up anything down the road - I have only made 1 project with tilesets so I'm not that well versed in them ;D

  • when your enemy sprite sees your player

    Set the enemy sprite angle = angle(enemy.x,enemy.y,player.x,player.y)

    This will find the angle from your enemy to the player and set angle will turn them in that direction.

  • I use Set Mirrored.

    You can find the closest enemy, if it is behind you set mirrored if it is in front set not mirrored.

    Or if you are using simulated keys while <- set mirrored and while -> set not mirrored.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You potentially have something resetting your character to "Animation 1" after they are killed, then they get set back to the death animation since they are dead and on "Animation 1" again.

  • Make a function that does everything you need to do before starting a new event. These will only be changes you need for all events not specific to event 2 or 3 etc.

    Every time you start a new event you call the function.

    Make sure you have your audio stopped with this function.

  • Built in buttons suck for many reasons - you should make your own ^.^

  • Particles can be used an infinite amount of different ways. Here's what mine look like, I think this is something like what you meant. You can see the properties on the left side.

    Start of layout - set particles NOT spraying.

    On victory set particles spraying.

    The properties that effect the particles going down furth would be your gravity, speed or timeout.

  • What part of your game are you stuck on?

    Have you:

    - Figured out the platform part?

    - Created the objects that you need to collect?

    - Figured out how to collect the objects on collision?

    We need details to help you out :)

  • Iterate through the array while tracking What index has the lowest value and what that value is.

    IE:

    index: 0 - 1 - 2 - 3

    Value: 4 - 2 - 5 - 1

    0 = 4 - automatically the lowest, its the only other

    1 = 2 if 2 < 4 set 1 lowest - true

    2 = 5 if 5 <2 set 2 lowest - false

    3 = 1 if 1 < 2 set 3 lowest - true

    add value to index 3

    Sidenote:

    if you want to have different requirements for weapons (Different Clip sizes) you should set each value with the % full instead of the number of bullets.

    3 rockets where you can hold 4 = 75% full.

    4 minigun bullets where you can hold 100 = 4% full.

    Choose minigun.

  • I just put everything off screen and then find a way to destroy them on start of layout to keep the number of sprites to a minimum.

    -Objects with Moveto or Bullet I usually just throw above the screen - On start of layout Object Y < 0 destroy

    -Most of my Texts fade out and destroy so those clean themselves

  • I use 2 different ways:

    Lionz answer is the first route - it works great as long as there is enough room for the objects to spawn and find a place without having to retry over and over. Your 11 targets would take up quite a lot of the overall screen space meaning you would potentially experience issues finding a place for the last few targets every now and then.

    route 2 - Preplace sprites set to invisible everywhere on the screen you would be okay with a target appearing (AKA spaced so they won't overlap). Give each of these sprites a boolean to track 'tracker' if you used it - starting value: false.

    For each sprite & tracker = false & Pick Random sprite - Create Target sprite.x,sprite.y and set tracker to True.

  • Give me a c3p file with your game and I will figure your bug out for you and tell you what to change and why.

    My Discord:

    discord.gg/BWeGnTUT

    If suggest sending it in a DM so less people have access to it, since it is your project.

winstreak's avatar

winstreak

Member since 4 Dec, 2019

Twitter
winstreak has 11 followers

Connect with winstreak