ID:180000
 
Can anyone tell me how to make this

flick('kamehameha.dmi',src)

an overlay?

Ive been trying to do this for almost 2 hours now, and almost everything i do turns it into no overlay or no usr mob. Im about to go crazy!!!!! please help me.....
Jotdaniel wrote:
Can anyone tell me how to make this

flick('kamehameha.dmi',src)

an overlay?

Ive been trying to do this for almost 2 hours now, and almost everything i do turns it into no overlay or no usr mob. Im about to go crazy!!!!! please help me.....

Hit F1 in Dream Maker. Read the description of the flick() proc. Tell me... is there anything in that description that even remotely suggests that it has anything at all to do with overlays?

If you would've read that description carefully, 2 hours ago, you would have two more productive hours left in your life. If you're not interested in reading the help files, I suggest that you give up coding and take up smoking instead. Ultimately, you'll live a more fulfilling life.

That having been said... you want to work with overlays, right? So why are you using flick? If you want an overlay, use an overlay. If you want the overlay to appear momentarily, then disappear... make it appear, wait a moment, and disappear. I'm sure you know how to do all three of those things individually. Is there any particular reason you couldn't make them happen one right after another?
In response to LexyBitch
Thats what i was using, before a made the kamehameha a movie icon, i was using somehting like this:

usr.overlays+='kamehameha.dmi'
spawn(20)
usr.overlays-='kamehameha.dmi'

but now when i use that, it will only play the 5 frames in the correct order the first time. i was only wondering if you could use the flick for an overlay. and yes i did read the f1 for flick, several times, i just dont get things sometimes. sorry if i keep asking stupid questions, im just trying to make this as best i can.
In response to Jotdaniel
Ah. Flick() is indeed the only way to guarantee that a movie begins at the first phrase and ends at the last frame, so that was a fairly logical place to look.

However, I had no idea you were approaching the problem logically, because you didn't explain the exact problem you were trying to solve by using flick, just the fact that you were trying to use it with an overlay. Read the response I left to your post which has this same basic problem in greater detail in Code Problems... and in the future, A) try to post each problem in only one place, and B) try to explain exactly what's going on (both in the game and in your head) in greater detail to begin with. You'll find you get much better results.
In response to LexyBitch
sorry, im havin a hard time thinkin right now, 1:40 am.
This post should be helpful: id:34027
In response to Jotdaniel
Jotdaniel wrote:
Thats what i was using, before a made the kamehameha a movie icon, i was using somehting like this:

usr.overlays+='kamehameha.dmi'
<font color="yellow">spawn(20)</font>
usr.overlays-='kamehameha.dmi'

As I have to keep pointing out, the highlighted line does nothing. It will notpause before removing the icon from your overlay.

Either use sleep(), or indent the line under spawn().

And while you're at it, look up spawn in the reference.