The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: COURAGIOUS SON on October 06, 2011, 11:13:43 PM

Title: [REQUEST] Traffic lights
Post by: COURAGIOUS SON on October 06, 2011, 11:13:43 PM
Hello everybody, I'm not sure if I'm not sure if i can request in this section but oh well. I am not a very good scripter and I need some help with traffic lights. So I got some pretty beast sprites for traffic lights and i want it to go from the green traffic light, to yellow for a shorter amount of time, to red for the same amount of time as green, this would be a huge help as my Mafia RPG takes place in the city:D
Title: Re: [REQUEST] Traffic lights
Post by: DoctorTodd on October 07, 2011, 08:59:05 PM
What you could do is Have three graphics (lights and each one will have one of these colors filled in red, yellow, and green) You will need three pages set the graphics. Now for every page set it to parallel process as its run type, as well as for the second page but self switch A as conditions B for three. Now put wait (1000 frames) or how ever long remember that 60 frames is one second. below it put turn on self switch A then do the same thing for page two except make it turn on B and put self switch A off. In the final one do the same thing except only put B switch off. Hope that helps  :)
Title: Re: [REQUEST] Traffic lights
Post by: COURAGIOUS SON on October 10, 2011, 12:37:31 AM
Again Dr. Todd thanks for tha Help  ;D