| Welcome to Brackenwood. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Sakura Snow-like Effect | |
|---|---|
| Tweet Topic Started: May 20 2005, 08:06 AM (392 Views) | |
| Deboche | May 20 2005, 08:06 AM Post #1 |
|
Brackenwood Heavyweight
|
I wanna create a sakura effect. You probably know what I mean, a lot of sakura petals being swept away by wind. I remembered it's a lot like snow, so I tried using this example http://www.kirupa.com/developer/mx2004/snow.htm but change the movie into a sakura petal I drew. I dont know what the problem is but when I use the test movie or export and run it, it tells me that a script in the movie would cause Flash to run slowly and doesn't run it at all What I really want is to have an effect where I draw about 3 different sakura petal movies and they randomly appear, affected by the wind, with different sizes and, since sakuras are lighter they would have to move more horizontally and slower than snow. Also, the sakura movie clips would be animated, not just a white ball. Can someone help me? EDIT: I have MX 2004 |
![]() |
|
| Mr. Jiggmin | May 20 2005, 12:22 PM Post #2 |
|
made of tulips
|
errr...., I guess that code would work if you made a few changes. You might want to change some of these variable names too... its just kinda confusing saying snowflakes when you're talking about petals. change the snowflakes value from 75 to how many petals you want in this line:
then use something more like this on the first part of the rest of the code:
Errrr.... hope that puts you on the right track. Any questions and ya can just ask.
|
![]() |
|
| Deboche | May 22 2005, 07:49 AM Post #3 |
|
Brackenwood Heavyweight
|
I used your code but I still get the same error. A windows comes up asking whether I want to keep running scripts cause it might make the computer slow. If I answer no, there are no petals and if I answer yes, it waits a few minutes and then the same window comes up if u know a good snow effect, I don't mind using another one. Or any other effect that might be suitable for sakura petals |
![]() |
|
| Squidclops | May 23 2005, 10:46 AM Post #4 |
|
Guy with a hat.
|
Hm. I made a particle emitter component some time ago. I could easily change it to make it a snow emitter. It's just a matter of making each new particle have a random tragectory. That way you can just chose a movie clip from your library to be the snowflake and let the emitter do the rest. |
![]() |
|
| Deboche | May 23 2005, 11:19 PM Post #5 |
|
Brackenwood Heavyweight
|
that might work but a random trajectory? Would it still look like the petals were being carried by the wind? |
![]() |
|
| Squidclops | May 24 2005, 10:56 AM Post #6 |
|
Guy with a hat.
|
Random within a certain range. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Actionscript · Next Topic » |






12:27 AM Jul 12