Initializing the color of sprites - startMovie?
Posted on 2001-08-18
Hi I'm new to Director (using version 7) and am completely self taught. The solution to this question is therefore probably very simple but here goes:
I have a movie where I wish to present some sprites in one color and then have the user choose a new color and to recolor the sprites using lingo.
This sounds easy but so far I have set the movie properties to paletteindex rather than rgb, puppetted my sprites and still I cant get it to work.
I have tried putting the code to set the colors of the sprites in different places including the startMovie script since I want to set them right at the start and change them later on. However, I can't get this script to run. I put a break point in and it never hits it. I was sure the startMovie script would run every time the movie was played but when I rewind and set the thing going it is definitely not going into this script.
Moreover, I cant get the sprites to change color when putting the code in other places such as the onMouseUp on the sprite behaviour. Using a random color works but setting a specific one (Im using the WEB216 palette) doesn't.