Hamumu Software Hamumu Software Hamumu Software
Name
Password Register
Latest Journal update: Oct 17, 2017
Old 08-28-2005, 03:23 PM   #1
Dave Hettel
attack of the gnomes
 
Dave Hettel's Avatar
 
Join Date: Jul 2003
Posts: 1,228
Default Randomly Colored Cars?

I have a bunch of You-go's, Parked Cars, and Moving Cars, probably a couple of Autozoid's. Is there any way to color the cars randomly at the beginning of the level?
Dave Hettel is offline   Reply With Quote
Old 08-28-2005, 04:01 PM   #2
Jamul
Marshmallow Head
The Boss
 
Jamul's Avatar
 
Join Date: Jun 2003
Location: Hamumu HQ
Posts: 6,118
Default

Not generally... since Monster Color takes a specific value and not a variable, you'd need 8 different Monster Color specials per car to do a true random thing. You can hand color them to an assortment of colors...

Traffic you can do something interesting with - have a place on the road (like a tunnel where it gets pitch black for a short distance!) where if a Traffic steps on the space, you have 8 specials, each one like "If step here and random 5%, change Traffic at here to color X" where each X is a different color. Put some random brightness to on a separate couple of specials. Then as the Traffic makes its loop around the city, you keep seeing different colored cars each time. I guess you'd need this in several places for several different loops. It wouldn't help with the initial coloring, but I don't know any way to do better with that than by hand. Maybe somebody else has something on that.
__________________
Jamul is offline   Reply With Quote
Old 08-28-2005, 05:47 PM   #3
chaucer
Chaucertastic!
 
chaucer's Avatar
 
Join Date: Aug 2003
Location: Pale Blue Dot
Posts: 1,748
Default

To do this, you need specials going something like this:

Code:
Once every 0 seconds 

uses:1

Set variable V0 to 1R8
Then, a series of specials choosing the color the cars will become:

Code:
If V0 is 1 Exactly

uses:Unlimited

Change X at Y to color grey.
(X represents the enemy you are changing, Y represents where it is)
Then, you would do if V0 is 2 change X at Y to green, if V0 is 3 change
X at Y to brown.
WARNING! This could take a VERY long time and will probably result in too many specials.

I do hope this helps!
__________________
"The HTCPCP server is a teapot. The responding entity MAY be short and stout" ~ 418 Client error
This morning's sermon: Jesus Walks on Water
This Evening's sermon: Searching for Jesus
"I'm really looking forward to that date [12/21/12] so I can laugh at them when the world doesn't end." ~SpiderPumpkin
chaucer is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Poll: Cars in HPG TyTBone Total Mayhem 4 05-18-2008 05:27 PM
1 spam topic that we could all randomly ramble in. diginova Total Mayhem 199 12-30-2007 05:59 AM


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.
Site Map
Copyright 2017, Hamumu Games Inc.