Stick Page Forums Archive

Hey.

Started by: Sawc | Replies: 1 | Views: 418

Sawc
2

Posts: 908
Joined: Oct 2006
Rep: 10

View Profile
Mar 8, 2009 12:12 AM #370226
I need your help.
Aight so I'm learning my actionscript, right?
Making a game, right?
I need a script that will constantly change the color values of a movie clip to make it seem psychedelic, you know? Can someone point me in the right direction?
By the way, I'm using as2.
Scorpioxxx
2

Posts: 1,454
Joined: Apr 2006
Rep: 10

View Profile
Mar 8, 2009 12:50 AM #370259
Right, the easiest thing to do is set up frames with a stop function in each, with them covering all the colours you want involved then having a script that randomly selects a number, for example 0, 1, 2, 3, or 4. The have if functions where if the random number = 0 goto and stop the frame with red, repeat for every colour, then on the frame with red, don't have red as on of the 'choosable' colours, ie, if you have 6 colours, you need 5 if functions, one for every colou bar the colour of the frame the script is going in. Stick this on every frames and there you go. It would work better if you set a timer for i dunno, half a second before it picks a number and changes colour. As for setting colour codes, not sure about doing that in AS2.
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.