08-15-2008, 04:14 PM
(This post was last modified: 08-15-2008, 04:24 PM by Silverthorn.)
wow, I wrote a page about that and then I found out that the solution can be much simpler... :P
What you need to do first is splitting the sprites up, into beam and into beam-top (basically the content of the red box you drew).
Your character doesn't directly shoot a beam, but a dummy object. This dummy object will create the beam-front-thingy and then and then the beam-object. Now we have three objects. The first one behaves like the beam (watch for the centerx-values), the second one is a steady image of the front of the ball, and the thirs is that dummy. The only purpose of the dummy is to create new beam-tips every time the frames change. That sounds difficult but it isn't. You could actually take the beam-frames, copy them, and use them as a basis for the dummy, jsut replace any frame content with one opoint. Thus, your dummy works in the same rhythm(?) like beam. The beam-tip will disappear after the beam changes, so copy the wait-value from the beam into the front-thingy and write a next: 1000. The only thing you have to pay attention to are the coordinates where the front thingy will appear.
Hope you understand what I mean
Edit: Dang, and now I'm even to late :P
What you need to do first is splitting the sprites up, into beam and into beam-top (basically the content of the red box you drew).
Your character doesn't directly shoot a beam, but a dummy object. This dummy object will create the beam-front-thingy and then and then the beam-object. Now we have three objects. The first one behaves like the beam (watch for the centerx-values), the second one is a steady image of the front of the ball, and the thirs is that dummy. The only purpose of the dummy is to create new beam-tips every time the frames change. That sounds difficult but it isn't. You could actually take the beam-frames, copy them, and use them as a basis for the dummy, jsut replace any frame content with one opoint. Thus, your dummy works in the same rhythm(?) like beam. The beam-tip will disappear after the beam changes, so copy the wait-value from the beam into the front-thingy and write a next: 1000. The only thing you have to pay attention to are the coordinates where the front thingy will appear.
Hope you understand what I mean
Edit: Dang, and now I'm even to late :P
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt