Any way to create new attributes whilst playing in game..?

StormyStudioStormyStudio United KingdomMember Posts: 3,989
edited November -1 in Working with GS (Mac)
Never considered it before, but is there a way or a work around.

So that if something happens a new attribute could be created.

E.g. (not what I'm actually looking to do, but an example)

You spawn a dot and its x and y position are saved as game attributes. So other actors can use them.

You then spawn another dot, and rather than changing the previous x and y attributes, it creates some more game.attributes named accordingly and tracks the new dots x and y...

To be used by another actor

Sorry if that does'nt make sense.

I dont think there is a way but thought I'd ask...

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    pretty sure that's a no. that's where arrays would come in.
  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    That's what I was thinking, the whole array thing.

    Ah, well I guess I'll just make enough attributes before hand and limit the functionality a bit on my game. Won't ruin the game just thought it would be nice if it could produce the needed attributes when they are needed for a certain feature.
Sign In or Register to comment.