People Playground

People Playground

View Stats:
Xolote Jun 30, 2024 @ 4:45pm
how do you use "RandomSpriteBehaviour"?
does anyone help me on how to use RandomSpriteBehaviour?
In this code example:

"var skin = ModAPI.LoadTexture("Ado1 layer.png");
var flesh = ModAPI.LoadTexture("Flesh layer.png");
var bone = ModAPI.LoadTexture("Bone layer.png");"

in the case of humans
where I put it

Right:
Instance.AddComponent<RandomSpriteBehaviour>().sprites = new Sprite[]
{
ModAPI.LoadTexture("hat12.png"),
ModAPI.LoadTexture("hat13.png");
};

in that?
< >
Showing 1-2 of 2 comments
nitroglycerin Jul 1, 2024 @ 4:16am 
don't use ; at the middle of these curly brackets man :(
Xolote Jul 1, 2024 @ 10:17am 
I don't know anything about C# 😭, I only know about gml
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jun 30, 2024 @ 4:45pm
Posts: 2