Hi all,
I’ve been trying to find some way to get a realistic starfield (where the stars seem to zoom by you) in Flash for some time. I have tried everything from tweens to simple AS. For some reason, my limited scripting knowledge prevents from creating a good enough effect that I see on sites such as Robertpenner.com. Is there a simpler way to accomplish that effect without having to use motion tweens?
You take about 1/2 (of an ounce) of weed, a large rolling paper, roll up a nice spliff, dip in honey, find a lighter and smoke it. Ensure windows and doors are shut also.
About half way through it you’ll find that you can accomplish pretty much anything you want, you’ll see the best graphics and effects ever on your screen, that you made!!
If you mean zoom by you - this may help, although may be a bit too fast - more of a warp effect.
Found it floating around on the net…
Also, I’ve written a tutorial for the games section. How do I get it to you. I used the template. I’ll have another look at the Tutorials forum - it was prob. obvious but I missed it.
*Originally posted by RageW0lf *
**Yeah, a much easier and simpler way.
You take about 1/2 (of an ounce) of weed, a large rolling paper, roll up a nice spliff, dip in honey, find a lighter and smoke it. Ensure windows and doors are shut also.
About half way through it you’ll find that you can accomplish pretty much anything you want, you’ll see the best graphics and effects ever on your screen, that you made!!
hope that helps! **
That’s definitely advanced, RageWolf.
And Kir, why don’t you try the perspective tutorial? Could be exactly what you want…
Thanks a lot for the replies. Flex that is pretty much exactly what I had been looking for. Thanks Same to you bezza. Pom, your tutorial is what got me back on the zooming star thing. After reading your tutorial, I decided to give that effect one last shot.
Nice work guys!
Flex >> Very cool effect.
Bezzer >> What’s your method? Tweens or code? And strange thing: your stars appear quickly and then slow down, whereas it should be the opposite
Here’s something based on the perspective tutorial (the engine is not mine, it’s Keith Peter’s. Make a large scene, a black background, and create a movie clip of a small dot with the linkage name “dot” and enter this cide (Flash MX):
Sorry to stray Ilyas, but do you know how to reset the getTimer() function? I could easily look for it on the web, but hey, figured I would ask you.
I want something to pause for about 3 seconds and have it start again, but it has to loop around so when it starts over again, I want the timer to be reset. Do you know how to do that?
getTimer can’t be reset, it is the time elapsed since the beginning of the clip. All you’ve got to do is work with time spans (I hope all those words exist in English…).
timeStart=getTimer();
if (getTimer()-start<3000){
// do what you want
} else {
// timeStart=getTimer();
}
I don’t see a delay… but I do understand what Pom is talking about. Perhaps if I show my methods it will make more sense to you… don’t know yet.
I use oldtimer newtimer
somewhere in the beginning of my movie I place
oldtimer=getTimer();
Then I just keep reseting oldtimer when I need to. The timer itself is arbitrary once you’ve asigned it to a variable. from then on your just subtracting times. so…
you’re just setting up a loop where it waits to go forward until the difference between oldTimer and newTimer is a certain amount. When that does happen, the playhead moves to the next frame after the oldTimer is set to the newTimer amount.
The next time this is checked… the oldTimer is bigger than it was in the beginning… and consiquently set to be used for the same difference equation.
to be tricky, if I were going to do this many times and possibly to many different objects… I’d set it up as a function rather than frame script.