I don't get these logics:
Hey all,
My problem is,
I want that, if player click an item, there is stats to be seen.
For example, stats of a dagger will spawn.

When player clicks an other item, the previous clicked stats (of the dagger) should be destroyed and the stats of this next item, for example of a sword, will spawn, otherwise the stats will overlap eachother like this:

Problem is, I made a boolean named 'destroystats'.
Each stats of each item has a rule with 'if destroystats is true, destroy this item'
Each stat that spawns have a rule, when touch is clicked, set destroystats boolean to true (so that stats that are already displayed will be destroyed)
, problem is then, ofcourse, that the next rule, which spawns the stats of this clicked item, will not spawn cause the boolean is set to true.
So I made this:
when touch is clicked > set destroystats boolean to true > set destroystats boolean to 0 > spawn statsitem
But boolean set to 1, and boolean set to 0 in two rules after eachother don't seem to work.
How could I manage to make this work?
My problem is,
I want that, if player click an item, there is stats to be seen.
For example, stats of a dagger will spawn.

When player clicks an other item, the previous clicked stats (of the dagger) should be destroyed and the stats of this next item, for example of a sword, will spawn, otherwise the stats will overlap eachother like this:

Problem is, I made a boolean named 'destroystats'.
Each stats of each item has a rule with 'if destroystats is true, destroy this item'
Each stat that spawns have a rule, when touch is clicked, set destroystats boolean to true (so that stats that are already displayed will be destroyed)
, problem is then, ofcourse, that the next rule, which spawns the stats of this clicked item, will not spawn cause the boolean is set to true.
So I made this:
when touch is clicked > set destroystats boolean to true > set destroystats boolean to 0 > spawn statsitem
But boolean set to 1, and boolean set to 0 in two rules after eachother don't seem to work.
How could I manage to make this work?
Comments
Then, in your actor that displays text for these stats, have a set of corresponding rules. IE: When STATnumber = 1 then Display Text (Whatever you want. When STATnumber = 2 then Distplay Text (Whatever you want next. And so on.
In this way, you will never have an overlapped message because each Display Text rule will only fire when their number comes up. You can have as many Display Text rules associated with one actor as you want. No need to spawn or destroy anything.
You say you don't have to spawn an actor for displaying text. I found that's true, but actors you can spawn on a specific location, and just the display text rule I didn't found any way to spawn it on a certain location..
Or is there a way to spawn text without spawning an actor on a certain position?
If for some reason you need the location of the text to change, you could either have separate actors for each location, each with it's own Display Text rule, OR you could have one actor that Changes both X and Y positions depending on the value of the STATnumber.