Platform Builder Forums
Help and Support => Working with Platform Builder => Topic started by: Antikore on January 08, 2019, 10:14:07 AM
-
Set a variable with placeholders in the name.
For example:
game var healthState.[health] = 1
For example, to change a variable that is different depending on the health you have.
Someone can tell me if this can be done?
-
I never accounted for that kind of trick when I made the command prompt. However, there's a possibility it might actually work that way. In theory, the [bracketed] section would be changed to it's value, and that value would be included as part of your variable name. You would end up with a unique variable for every possible health value.
This has never been tested, but it is worth trying. Let me know it it actually works.
-
If not, will be cool to have it working properly. Anyways, I didn't test in depth but it seems to work with the variable:
game var Highscore.[area] = 1
The problem is when you use a placeholder to show up the value, you need to put like this
[game var highscore.[area]
That's strange because it has two "[" and only one "]" to work
-
Hey! Antikore! I have an idea. How about when UPE comes out, you add all of your medley of suggestions into PB! How about that?
-
It will be awesome, but I'm very bad when programming on GameMaker Studio (Both, 1 and 2). Probably in the future I will learn how to use it.
-
For clarity, the UPE does't give you the opportunity to add stuff to Platform Builder. It only gives you the opportunity to edit individual games made with Platform Builder.
-
Oh. I didn't know that. Well, that's okay. So, you can't release a copy of PB that's been modified?
-
Oh. I didn't know that. Well, that's okay. So, you can't release a copy of PB that's been modified?
What do you mean? Every time I release a new version of PB, it's a modified version of the previous version.
Releasing the UPE will not change the fact that I still own and control the source code for Platform Builder. It will only give people the opportunity to tweak with stuff for their own projects.
-
Oh! I think I get it now. Okay. But, I still am wondering about another similar matter in your latest announcement about the UPE.