GenericGameDev's Recent Forum Activity

  • I've got all of these enemies, but they start to overlap each other pretty easily. Is there a fix that I'm missing or is this something I just have to live with?

  • Sorry, for the late reply. Yes that seems to have done it, thank you.

  • At a glance, it seems GrublinhurtRight/Left are global or local variables, so when you change them, they will apply to all the sprites. You should make them instance variables of the sprites themselves to make them affect the sprite in question only.

    Changing them to instance variables fixed the knockback problem, But they still have a hive mind when it comes to direction. I don't know why the instance variable would work for the knockback but not the direction. Any thoughts?

    Thanks for your help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every time I attack my enemy, and if there's more than one in game at a time, they will all share the knockback that I put in and the direction. If one is moving left then they are all moving left. If one gets hit then they are all getting knocked back. Any chance there's a fix that doesn't involve me scrapping the entire enemy?

  • Thank you. This helped immensely.

  • How would I make it so an instance variable only affects a specific spawned sprite instead of all at once?

    For example, I have an instance variable set so that if an enemy collides with the player it will change the instance variable and that will cause it to set to an animation and destroy itself. But when one enemy changes the animation, any other enemies will also change animations because the variable changed.

    Is there some way around this, or a different way that makes more sense?

  • So there's probably a simple fix for this, but I haven't been able to find one.

    This bit will subtract 1 from "health" every tick. But how would I control the timing of it?

    Say I only wanted to subtract 1 from "health" every second.

  • Thank you. This works perfectly.

  • All I'm trying to do is count the number of sprite clones are in my layout at a given time.

    This obviously just adds one to my variable indefinitely because it's looping.

    How would I fix this so it only adds one to the variable at a time?

GenericGameDev's avatar

GenericGameDev

Member since 6 Mar, 2019

None one is following GenericGameDev yet!

Trophy Case

  • 5-Year Club
  • Email Verified

Progress

6/44
How to earn trophies