My idea is to insert a group of buttons (+/- and progress bar) into my project PlayCanvas | HTML5 Game Engine , and after instead of progress bar insert my sliding button…
So, now I have probelms with inserting progress button in my scene, can`t to figure out why I have this mistake, maybe someone could help me!?
There is no progressBar script on your progressBar entity, so that gives an error. I only see a slidebutton script, but i can’t find that script in your project.
If you have changed the name of the script try to use the parse button on the progressBar entity to update the script name.
Little mistake here @Albertos. @Ivan_Stratiichuk should parse the Button Group entity, and select the progress bar entity. I don’t think this is a script naming issue, rather which entity to parse. Attributes can be quite confusing though .
If you need help understanding progress bars, feel free to check out my game Shifty - which uses progress bars to a large extent - PlayCanvas | HTML5 Game Engine.
Great! I understand what you are trying to do. I think it is not difficult. But I foresee the problem that the scene will be switched when you are still clicking to the right scene…
I don’t think that was the issue. The issue was that it couldn’t find any entity called this.ProgressBar, meaning the progress bar entity hadn’t been parsed on to uiStats. The solution to this was parsing the progress bar entity on the uiStats script, which existed only in button group.
I think if you want to use your progressBar to switch between scenes you don’t need the buttons anymore. Just check the current number after the player has using it and switch to that scene.
Note: I foresee the problem that the scene will be switched when the player is still clicking to the right scene. So you need also a timer or something. Also I think progressBar is not the best name, because it is not a progress bar?
Yes, its not a progress bar, but I dont want to change the name not to make a mistakes…
I thought to build the next:
I will have a group of buttons, left arrow, middle slide button and right arrow. When user want to change a scene he need to chose those scene that he want by arrow, and after he did it to click on middle slide button, thats why I choose progress bar code as a base…!?