mercredi 16 août 2023

Making RGB value random for game?

I play a game (silly race game called Zero Gear) And i want to get a random RGB color every match i play. I managed to do this with the kart already by setting the value to an invalid ID, that randomizes it. But it does not work the same for RGB

A part of the code is as followed:

<Parameter name="CustomWheelColor1" type="STRING" data="r g b" />
<Parameter name="CustomWheelColor2" type="STRING" data="r g b" />
<Parameter name="CustomWheelColor3" type="STRING" data="r g b" />
<Parameter name="CustomWheelColor4" type="STRING" data="r g b" />

So for example data="255 255 255" would display a white wheel color

it reads the DATA RGB part. and i have NO idea how to get this so it is random ingame.

Might be impossible, idk but i had to try and ask!




Aucun commentaire:

Enregistrer un commentaire