Changing Graphics

Raeven

Well-Known Member
This post was originally posted in this thread http://forum.freeso.org/threads/heyty-is-making-stuff.6719/
As a response to my suggestion that Heyty combine his 3 similar decor objects into a single "X-in-1" object. He did so, then had a question about creating an interaction so the Owner can choose one of the three options at will. This general response about changing the graphic, has been reposted here to clear up his uploads thread a bit.

To switch the graphic to another one you only need 2 nodes.

To display the first one those are
  • Stack Object's graphic := 0
  • Refresh Stack Object's Graphic

To display the second one they are
  • Stack Object's graphic := 1
  • Refresh Stack Object's Graphic

To display the third one they are
  • Stack Object's graphic := 2
  • Refresh Stack Object's Graphic
Stack Object's graphic is used in this case instead of My graphic because "my" will affect the Sim while the thing the Sim is using will be the Stack Object.

The rest of each of those trees can be any sort of dressing you want (routing over, using animations etc). Thoe 2 nodes just change the graphic and then display that change to the player.

In the CHECK TREE for each interaction you would probably wan to check and see if the graphic is already displayed and, if so, hide the interaction at this time
The Check tree for the first one would include
  • Stack Object's graphic == 0
If False -->True (green checkmark)
If True --> False (red X)

and so on for the other two
 
Last edited:
Back
Top