tag:blogger.com,1999:blog-6017845137137872635.post4871232698936010325..comments2023-06-12T07:53:49.327-07:00Comments on Califer Games: How to make a Siphon Spirit orbCaliferhttp://www.blogger.com/profile/05675298509130068884noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6017845137137872635.post-2114013425560647692013-09-13T09:40:29.370-07:002013-09-13T09:40:29.370-07:00I actually put a little more math into it, but I d...I actually put a little more math into it, but I didn't want to clog up the post with all the details.<br /><br />I actually only randomize half the radius but leave the rest of the radius as a buffer to help promote it being on the outside. So if the radius was 10, the orb would be place anywhere between 5 and 10.<br /><br />Another thing that helps this work is the draw order. Particles that are added first are drawn first, so the latest ones that are closer to the outside show up more clearly and help define the size of it better. Although we did end up having to add a halo around the player orb so they could see the exact size.<br /><br />The orb that I'm showing in the gif is a selection orb, the thing that shows you what button you have selected. Figured it would be best to show it without any other art on it.Califerhttps://www.blogger.com/profile/05675298509130068884noreply@blogger.comtag:blogger.com,1999:blog-6017845137137872635.post-91517444952518068382013-09-13T08:00:30.881-07:002013-09-13T08:00:30.881-07:00yay, Math!
Just out of curiosity, If I understand...yay, Math!<br /><br />Just out of curiosity, If I understand correctly, each time a particle is added to the orb, and the orb's radius get's bigger you pick a random distance between the center of the orb and the orb's radius for the particle to start orbiting around? This would mean that the center of the orb always had a higher concentration of particles then the outside, which, it probably should. But it also means that there is an improbably but possible chance that the particles are added in the center, and even though the orb is growing, it would always look small.<br /><br />A way around this would be to have a smaller radius within the orb that grows (probably not proportionally) with the radius of the orb itself. Then, when picking a radius for a new particle to start orbiting around, you just pick a random number between the radius of the orb, and the smaller radius within it.<br /><br />Anyway, every time I've seen it the orb looks great, so this is probably unwarranted. But I just like math, and randomness, so I wanted to say something on the subject. :)HamiltonDFPhttps://www.blogger.com/profile/11377150493062224607noreply@blogger.comtag:blogger.com,1999:blog-6017845137137872635.post-35469015948907522152013-09-12T13:46:29.392-07:002013-09-12T13:46:29.392-07:00Oh I might need this for that new thing we're ...Oh I might need this for that new thing we're not telling people about yet.Peterhttps://www.blogger.com/profile/12347872554725773648noreply@blogger.com