- Home /
Question by
$$anonymous$$ · Apr 12, 2014 at 02:09 AM ·
2dplayerclassside-scrolling
Creating An "Attribute" Mechanic?
I am making a 2D, side-scrolling game. I want to attach a script to my player object. I want to create an array of "attributes" like sick, healthy, or strong for example. Each attribute would have a string name, an float ID and each would affect my player differently. Maybe if my player was sick, his speed and health went down. How can I do something like this? I've seen people mention creating classes or structs, but I have no experience using those.
Comment
It might be worth doing a C# program$$anonymous$$g tutorial to learn how to do things like this
Your answer
Follow this Question
Related Questions
find prefabs that extend Base Class c# 0 Answers
the player is flying off the ramp (collider) 1 Answer
Coth physics in 2d 1 Answer