x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to spawn bullets just like fireworks in blueprint?

Sorry about my poor English,I'm a ue4 beginner and I'm working on a 3D Bullet Hell game now, and I need to spawn bullets from a point and shoot in all directions just like fireworks or "Sphere" which you can see in particle.alt text

But I just don't know how to do it.What I know only is using spawn actor from class node but I still can't work out.Is there anyone who can help me solve this problem? thanks: )

Product Version: UE 4.19
Tags:
无标题.png (188.8 kB)
more ▼

asked May 07 '18 at 06:44 AM in Blueprint Scripting

avatar image

Kirytos
1 1

avatar image goncasmage May 07 '18 at 08:20 AM

I think you're better off making that in UE4's particle system.

avatar image Kirytos May 07 '18 at 12:19 PM

well,because I need check if the bullets hit player and something else, so I think I have to use blueprint,or do you mean I can do it in a particle system ?

avatar image HarryHighDef May 07 '18 at 12:28 PM

If you know how fast the particle moves you could use a sphere collision and expand its radius and check for overlaps. It wouldn't map 1 to 1 with the particle but it would emulate the results cheaply.

avatar image Kirytos May 07 '18 at 02:06 PM

Oh,thanks,that's quite a good way,but I prefer a more accurate way:-)

avatar image ThompsonN13 May 07 '18 at 03:19 PM

ive done something similar in 2D but 3d is way more complex. the way i did it in 2d though was to take how many projectiles i wanted to spawn then divide 360 by that number then set each projectiles rotation via a for loop. so i you wanted 4 projectiles then it would be 360/4=90, then run through a loop where you multiply the index by 90 and set the projectiles rotation to that number (index 0=rot 0, index 1=rot 90, etc)

avatar image Kirytos May 07 '18 at 04:08 PM

appreciated bro! It did work but in 3d I had to add another loop to keep the whole shape a sphere,which caused FPS down below even 10FPS,I guess maybe the engine can't spawn hundreds of actors at the same time and that's the next problem I need to solve.Thanks for the help ! :-)

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question