andi_licious's Recent Forum Activity

  • Thanks a bunch! It works very well.

  • Hey folks!

    I've been trying around for like an hour now but I have no idea how to make a projectile sticky.

    The bullets need to stick to an enemy when they hit them. After a brief delay, it should explode. How do I do this? :(

    Thanks in advance!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • So in case you want to know: I managed to do exact what I wanted!

    A bullet that travels upwards and after it hits an enemy the bullet becomes homing towards another random enemy.

    Thank you oosyrag, you were a great help!

  • Is this the correct way? I mean it kinda works now but it sure looks like a mess for you.

    The only problem that's left is: the bullet only hits it's target after setting the speed of the picked random enemy to zero (as seen in the image) because the bullet flies to the location where the enemy just was.

    Do you know a workaround for this?

    Thanks oosyrag for the help so far!

  • Thanks for the advice, I wasn't aware of the family option.

    But still: How to make the bullet work properly? When it hits an enemy, the enemy explodes and the bullet will keep on flying. So far so good.

    But it flies completely random, sometimes to the right, sometimes down and sometimes it even hits enemies (I think this is pure luck though).

    I need the bullet to only hit on-screen enemies.

    By the way: How can I make the bullet target a random enemy from the enemy family using "system - pick random instance"? What do I have to do after picking?

    I'm very sorry but I'm still not familiar with Construct so my questions may seem stupid to you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Okay so the bouncing works but the way the bullet picks a new enemy doesn't.

    The ricochet bullet won't travel towards a random enemy. Most of the time it flies of the screen in a random direction. The bullet has to fly towards an enemy that is on screen but it feels like it flies towards something that is not on screen... I don't know.

    Because I have 4 different enemies I tried this:

    choose(angle(Bullet_8.x,Bullet_8.y,Enemy_1.x,Enemy_1.y),angle(Bullet_8.x,Bullet_8.y,Enemy_2.x,Enemy_2.y),angle(Bullet_8.x,Bullet_8.y,Enemy_3.x,Enemy_3.y),angle(Bullet_8.x,Bullet_8.y,Enemy_4.x,Enemy_4.y))

    So the bouncing bullet will choose between enemy 1, 2, 3 and 4. But this doesn't work either.

    What am I missing? I feel like I am very close to a solution but the bullet just won't behave like I want it to.

    :(

  • Thanks! I will give feedback if it worked out!

  • I want to create a bullet that bounces to a random target nearby and then destroys itself.

    Edit: A bullet that bounces from an enemy to another random enemy nearby and then destroys itself.

  • Hello guys! I am quite new here and managed to build a little space shooter by myself and some Youtube help but now I'm kinda stuck :(

    I want to create a bullet that bounces to a random target nearby and then destroys itself.

    I tried "Move to" and "Turret" but nothing seems to work. Do I need 1 or 2 bullets and what behaviours do they need?

    I hope someone can help me. Thanks in advance! <3

    Andi

andi_licious's avatar

andi_licious

Member since 5 Sep, 2020

None one is following andi_licious yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies