How do I freeze bullets and have all of them move again?

  • Hello! I'm currently working on 2 attack ideas and I need help...

    Attack Ideas:

    1. 5 bullets spawn around an object and fly one by one towards the player's location. Each bullet spawns with a short spawn animation.

    2. 5 bullets spawn around an object but are frozen until the 5th bullet spawns. Then, all 5 bullets unfreeze and fly towards the player's location.

    I was able to freeze the bullets, although I don't know how to have them all unfreeze at the same time and fly towards the player's position. Any help would be appreciated! Thank you for reading my question and have a nice day!

  • How did you freeze them? With disable bullet? Just enable bullet again.

  • How did you freeze them? With disable bullet? Just enable bullet again.

    Hello! Thank you so much for your help! I've made another game and tested it out, and reenabling the bullets did work. Although the way I coded this current game won't allow the bullets to be re-enabled for some reason... am I allowed to send a picture of the code? If you don't mind, that is.

  • Yeah you can share a link to a file or a screenshot on here.

  • Hi Hyune,

    To post a link or url i think sadly you need a reputation of 500, I'm not sure about posting an <img>

    I too have been working on a way to seamlessly freeze and restart my bullets. Plinkies suggestion of toggling enable/disable seems to be the best way I could find so far as well.

    The only way I have worked out to get your Bullets to follow your player is to mess about with the Bullets angle of motion.

    I have another event that sets the angle to the Players.X it doesn't work perfectly though. If you are trying to create Homing Missiles sadly this way is a bit hacky and a sort of bad workaround.

    So if anyone else more experienced has a better solution for Hyune that would be great.

  • ibb.co/c1PFNb/img

    Yeah you can share a link to a file or a screenshot on here.

  • Hi Hyune,

    To post a link or url i think sadly you need a reputation of 500, I'm not sure about posting an <img>

    I too have been working on a way to seamlessly freeze and restart my bullets. Plinkies suggestion of toggling enable/disable seems to be the best way I could find so far as well.

    The only way I have worked out to get your Bullets to follow your player is to mess about with the Bullets angle of motion.

    I have another event that sets the angle to the Players.X it doesn't work perfectly though. If you are trying to create Homing Missiles sadly this way is a bit hacky and a sort of bad workaround.

    So if anyone else more experienced has a better solution for Hyune that would be great.

    Hey SB! Yea, you're right. But I just posted a url? It is plain text though. But, yes there are restrictions. Thank you.

    Oh, I understand. It's ok, thank you so much for taking the time to think about my problem and reply in the first place!

    Yea, that solution for homing missiles does make sense though and I think, even if it's a bit hacky, it can evolve!

    Thank you so much for your help, man!

  • I'm so sorry, everyone... I just realized that this was the Construct 3 section of the forum and not the Construct 2 section. I don't know if this causes trouble, but if it does then I am sincerely sorry.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • That's not a huge problem about posting in here. From your screenshot it seems fine, AttackValue will probs jump to 6 and enable them. I would share a capx via dropbox for someone to take a look.

  • Your link is broken because you don't have enough rep yet, you'll have to 'edit' it a little. : DD

  • Your link is broken because you don't have enough rep yet, you'll have to 'edit' it a little. : DD

    I think I somehow deleted the previous message

    Ha, ok, thank you so much, plinkie.

    http ://www.mediafire.com/file/l0pbbt0qmdzymlx/Attack1Test.capx

  • cloud.kyatric.com/index.php/s/bhPSZYTYTLvQWGO Fixed and commented capx.

    Relying on the scirra.com/manual/90/bullet:3lpyde37]Bullet behavior and instance variables and a couple of

    OH MY GOODNESS, THIS IS INCREDIBLE!

    Although, I just now had the opportunity to take a look at it, and there are a few parts that don't match the attack in my imagination (that's just my fault though, I didn't explain well enough. I was planning to add teleporting once each group of 5 was spawned as well), hopefully, I can find a way to match it 100%. Actually, I think I already have an idea of how to accomplish it. Still, this is VERY, EXTREMELY close to what I had in mind, I'm honestly shocked. Just, thank you so, so much.

    Thank you Kyatric, Plinkie, and SB!

  • You could use "set time scale" (normal time scale is 1.0, half speed is 0.5 etc..) but I think that freezes or slows EVERYTHING so I dont know if you could do it per object. maybe change the bullet behavior speed to 0?

  • Brandons404 I think that will work! I'll give it a shot and keep you updated, either way though, thank you!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)