Nedrac's Forum Posts

  • 8 posts
  • > It's impossible to help without more information. If you think you've run in to a problem with Construct, the best thing to do is file an issue following all the guidelines. Note we need all the requested information to be able to help.

    Well what is the requested information require? is it all of my code? or like addonds? or something else?

    Well i did some digging and found out that the page actualy loads, but gets behind the main construct window, and i cannot control the player unless i click on a unrelated page and then click on the preview window, it seems more to be a problem related to my pc itself rather than construct or my code, because it seems to instantly snap back to the main construct window thus not allowing me to click the preview window and control the player. Unless you have a way to fix this, i dont think i should report this as a bug, since it mostly seems to be a me problem, i suppose, but thanks a lot for anwsering quickly!

    Subscribe to Construct videos now
  • It's impossible to help without more information. If you think you've run in to a problem with Construct, the best thing to do is file an issue following all the guidelines. Note we need all the requested information to be able to help.

    Well what is the requested information require? is it all of my code? or like addonds? or something else?

  • I press F4, it has a loading saying "Preparing project data", then suddenly just diseapear, and nothing happens, i cannot press F12 to see the problem because the window does not load.

    When i press F4 only this happens:

    Im desesperate for help please tell me my game is not corrupted lol

  • Thank you again!!!

  • Here's what i did:

    >projectile on collision with Weakpoint:

    pin projectile to Weakpoint

    wait 5 seconds

    Destroy projectile

    >every 1.0 seconds:

    >Projectile is pinned:

    substract 1 from HP

    >Weakpoint HP <= 0:

    Destroy Weakpoint

    My problem is when an enemy is destroyed, it proceeds to destroy every enemy on the layout, and for the odd projectile pin i did, its to make a damage over time mechanic, but it dosent work too lol, but thats not too bad i will fix that myself, i just want to know how to destroy one instance of an enemy rather than all of them.

    Tagged:

  • The second-to-last event in your screenshot makes the projectile follow the player every tick - that’s why it doesn’t stay on the enemy.

    Also, why are you using so many movement behaviors? Follow, MoveTo, and Bullet all conflict with each other.

    Instead of the Follow behavior, you can just attach the sprite using the hierarchy. The logic would look like this:

    > On start of layout: 
    Add Projectile as a child to the Player (sync X and Y)
    
    On click
    Player Pick child Projectile: 
    Projectile set bullet enabled and launch in mouse direction
    
    Projectile on collision with Enemy: 
    Projectile set position to Enemy
    Enemy add Projectile as a child
    
    
    Every 1 second
    Enemy Pick child Projectile: 
    Enemy subtract from Health
    

    So i tried your child thing for the enemy damage, but didnt seemed to work, so i proceeded to do something else, and now it works, but the problem is every instance of that ennemy gets destroyed when the health reach zero, im sure i need to use the UID system but didnt seemed to work..

  • You're epic, thanks alot dude, i think you probably guessed im still kinda inexperimented to all this lol, but thanks again! <3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Subscribe to Construct videos now

    Hey so im in deep need of help, i want to make a game (duh) in which you attack ennemies by throwing projectiles at them, those projectiles latch onto them and deal continuous damage, said projectile also will follow the player behind ( you could compare this to pikmins).

    My problem is i cant manage to make the projectile latch onto the ennemy, and whenever the projectile is thrown, it can be thrown infinitly again no matter if its following the player or not, I also wanted to know how i could manage to make multiple entities follow the player without them stacking on top of eachothers.

    Here is the code i made so far:

    Thank you in advance for those willing to anwser and help me!

  • 8 posts