Can you combine text to an Add To Score behavior
-
So i realized im taking over the help and support section lol. Sorry about that guys. I promise you i do try everything in my power to figure out before asking for help. My next question, is it possible to add combine text with add to score. I know the simple answer is to make two labels and add the score right next to it. But i needed an instance for my score to say this.
Coins found
(Add to score behavior) of 7For example if you got 3 coins it will say
Coins Found
3 of 7I dont really need the top phrase to be within the combine text. I mean it will be nice. But id really like the “ of 7” in the same line as the add to score text. I added a screenshot of my attemp but it doesnt work this way.
-
@SplitMindGaming You aren't programming well apparently. I think it would work with only one Combine Text behavior. And also, you didn't put the data of the Score but you have put the Object ID, so it really won't work.
You should use a behavior that will trigger everytime a coin is collected ( Collided is a great example of a behavior that does that ). You should get the score ( not the object of anything like that, the only score data ) and put it in the first input of combine label. Next you put the " OF 7 " and you set the Label.
It normally will work. I know you will probably ask me for screens or anything like that but I really don't have the time right now, I have some work to do. But you should be fine with this.
-
@SplitMindGaming Easy solution is having seperate labels, but putting them together to look like it's 1 label.
Better solution, store coins amount in an attribute (or even a hidden label), and only use combine text for the display label that the user sees.
-
@SplitMindGaming Your behaviours are out of order. Behaviours work left to right top to bottom, I can see your top combine text behaviour is using the output of the combine text underneath it, so it's trying to get the output of a behaviour that hasn't even been run yet.
Can't speak for everyone, but you're not bothering me. This is what the forum is for. I'm pretty sure it was really inactive for a while until you came lol.
-
@SplitMindGaming said in Can you combine text to an Add To Score behavior:
But i needed an instance for my score to say this.
Coins found
(Add to score behavior) of 7For example if you got 3 coins it will say
Coins Found
3 of 7This isn't too hard. Have a look through this logic (and test it): https://go.aws/390Oex1
-
@Aidan-Oxley thank you so much for that. By the way to do you have a link to all the games you made. Would love to support and check them out.
-
@XxWhiteHearrxX how do you get just the scores data. When i drag out the add to score to the box it doesnt give me that option to choose the data. It just automatically gets the object id.
-
@SplitMindGaming There should be a way to view my projects from the Hub. I think I still have a featured project so you can hopefully access my homepage from there :)
The other users who have been replying to you on the forum have some pretty good stuff on the Hub too.