Shopping Basket
Your Basket is Empty
There was an error with PayPalClick here to try again
CelebrateThank you for your business!You should receive an order confirmation from Paypal shortly.Exit Shopping Basket


January 21 2019

Posted on 23 February, 2019 at 10:10

Today, Ive completed the base of the program state engine. This script is designed to not get destroyed on scene change and controls how all the scenes change. Depending on the GameType enum variable, determines which level is loaded. all play buttons set the GameType to which game the user clicked and then saves the data to disk with 2 variables, a number for build index number and a string for the GameType as you cannot save anything but a string int or float by default. Then the function attached to the button, calls the level load function and auto loads loading scene. This way in the update method (that checks every frame) checks what GameType is set to via the two variables, if scene is the loading scene by the build index number (always constant), first it checks what the string is set too,and if the string changes on a frame this is a signal for the script to change state, whatever the string is set to (always equals one of the GameTypes varables) sets the state and loads the levelInt that was just set by the button seconds before, and load that build index number scene. if the game is set to none, it always auto loads Scene "1" [home scene].

*Note: in the build index though, this really is scene 6 as mentioned in a previous post

-》 the order of scenes completed


if a scene is locked it sets it to load home scene at this time. I may change this soon to display error message instead of load a scene, as the user may want to pick another game and not have to loop back like current.


Reasons a level would be locked:

- paid for game (not FreeToPlay).

- Game isn't complete or ready.

- Game scene does't exist in build settings.


when in editor mode (building game in unity) all scenes are unlocked, only locks scenes on test builds and final releases.


set up 4 music players instead of 3. loading scene now has its own player and game music gets turned off on loading scene only.


-Music player on first 4 scenes loop same song set in the play list as first 4 songs, any other scene the list starts at 5 (if it gets to the end of the play list) otherwise it contunues to play what ever song is currently set in the musicPlayer, and auto change to next song in list when song clip ends.


-Loading player has a list of random Erie music that's sort of soft and quiet like ambient noise and randomly picks a number between 0 and list count and plays that clip number out of the array list, and loops it until scene loads. All clips are 3 min long and should never loop as loading should only take seconds.


-Sfx player is always active and not on loop, this way we can use it for sounds played by UI aka scene buttons and actions,


-Ambient noise player, disabled everywhere except options panel, and actual game scenes (not menu's.)


Script on start of each instance (1 time at start of game as it doesn't destroy) auto fills the play lists for each player from a saved resource asset. these assets were created so a developer (aka me ) can make an editor window for me to change and edit the song lists when working in unity.


Since I'll be making my own editor window I can make it do anything I want really, I can auto fill the lists from folders in resources I make and set up, I can rename song file names, I can rearrange the lists alphabetically a-z or z-a, song length longest to shortest or shortest to longest or manually set list to a specific order, make a play button to play the songs in the editor window to see if i like it and a delete button to remove it from list if i dont.


Goals for tomorrow:

Hoping to get google play login working, to test this ill have to build a test build and put it on web and try it out. if it works ill add a link in a new post. anything else is a bonus extra :).


That's all for now,


Thamas bell @ ZG

Categories: None

Post a Comment


Oops, you forgot something.


The words you entered did not match the given text. Please try again.


Reply golden goose sneakers
13:49 on 9 December, 2022 
Thanks so much for providing individuals with such a pleasant possiblity to read articles and blog posts from this website. It's usually so terrific and full of a great time for me and my office co-workers to search the blog on the least three times in one week to see the new guidance you will have. Of course, we're certainly fascinated with your extraordinary strategies you give. Some 4 points in this post are in truth the most impressive I've ever had.
golden goose sneakers
Reply supreme clothing
13:48 on 9 December, 2022 
I definitely wanted to write a quick note to appreciate you for the lovely techniques you are giving out at this site. My prolonged internet search has finally been compensated with incredibly good insight to talk about with my colleagues. I would express that many of us website visitors are quite fortunate to be in a useful place with very many outstanding people with very helpful basics. I feel somewhat privileged to have used your entire weblog and look forward to tons of more amazing times reading here. Thanks once more for all the details.
supreme clothing
Reply off white
13:47 on 9 December, 2022 
I just wanted to compose a simple remark so as to appreciate you for those fabulous pointers you are giving on this site. My time-consuming internet research has at the end of the day been recognized with high-quality strategies to go over with my contacts. I 'd point out that we readers are extremely fortunate to be in a fabulous website with very many brilliant professionals with helpful secrets. I feel pretty happy to have discovered the weblog and look forward to really more amazing minutes reading here. Thanks a lot once more for all the details.
off white
Reply YonduM
20:24 on 8 December, 2022 
buy citalopram 40 mg
Reply Miclleple
8:09 on 8 December, 2022 
arimidex pills buy
Reply bape hoodie
4:41 on 8 December, 2022 
My husband and i ended up being so joyous Albert could conclude his inquiry through the entire ideas he discovered from your own weblog. It is now and again perplexing to just continually be handing out points some people may have been trying to sell. And we also take into account we have the writer to give thanks to for that. The specific explanations you've made, the simple website menu, the relationships you will help promote - it is many astounding, and it is helping our son and the family reckon that this situation is entertaining, which is tremendously mandatory. Many thanks for everything!
bape hoodie
Reply kyrie shoes
4:40 on 8 December, 2022 
I am just commenting to let you know of the amazing discovery my daughter developed reading through your blog. She realized a wide variety of issues, not to mention what it's like to possess an excellent giving mood to let men and women very easily understand selected advanced matters. You undoubtedly exceeded our expected results. Many thanks for supplying the powerful, healthy, explanatory and even easy thoughts on your topic to Mary.
kyrie shoes
Reply golden goose sneakers
3:46 on 8 December, 2022 
I as well as my pals were going through the excellent information on the website and then suddenly I had an awful suspicion I never thanked the site owner for those secrets. Most of the young men were so passionate to see them and have in effect in fact been enjoying those things. Appreciate your genuinely very accommodating and also for going for this kind of notable things most people are really needing to understand about. My very own sincere regret for not expressing gratitude to you sooner.
golden goose sneakers
Reply westbrook shoes
3:46 on 8 December, 2022 
Needed to post you that bit of remark to help say thanks once again just for the wonderful principles you've provided on this site. It is so incredibly open-handed with you to make unreservedly all that many people could possibly have supplied for an e book to generate some dough on their own, specifically now that you might have tried it in case you considered necessary. These good ideas as well worked to be the good way to be certain that other people online have the same interest really like mine to know a good deal more in regard to this matter. I am sure there are thousands of more pleasant occasions up front for those who browse through your blog.
westbrook shoes
Reply kyrie 5 spongebob
22:00 on 6 December, 2022 
I happen to be commenting to let you know of the helpful discovery our child went through checking your web site. She mastered such a lot of pieces, which include what it's like to possess an incredible giving heart to make certain people really easily master a number of complicated matters. You really surpassed our expected results. I appreciate you for distributing these useful, healthy, revealing and as well as fun tips on your topic to Emily.
kyrie 5 spongebob
Reply yeezy boost 350
21:09 on 6 December, 2022 
Thanks for your own work on this web page. Kate enjoys doing research and it is obvious why. We know all regarding the dynamic means you provide valuable solutions through your web site and in addition attract participation from other people on that area of interest and our own girl is without a doubt discovering a lot of things. Take pleasure in the rest of the year. You're the one carrying out a very good job.
yeezy boost 350
Reply adidas yeezy
21:08 on 6 December, 2022 
I want to voice my affection for your generosity giving support to individuals that must have help with that issue. Your special dedication to getting the solution around came to be exceedingly beneficial and have in every case empowered guys and women much like me to arrive at their dreams. Your entire helpful report signifies much to me and a whole lot more to my peers. Regards; from each one of us.
adidas yeezy
Reply EvaduM
14:02 on 6 December, 2022 
10 mg fluoxetine
Reply JudyduM
11:48 on 3 December, 2022 
allopurinol cost canada
Reply Yeezy Slides Moncler Outlet Moncler Jackets
23:56 on 30 November, 2022 Yeezy Shoes Yeezy Adidas Yeezy Yeezy Supply Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Slides louis vuitton outlet Louboutin Christian Louboutin Shoes Christian Louboutin Omega Watches Omega Watches Omega Watches Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Slides Yeezy Supply Nike Shoes Nike UK Nike outlet Nike Nike Outlet Nike Outlet Nike Store Nike Store Louis Vuitton Louis Vuitton Online Shop Adidas Yeezy Yeezy Shoes Adidas Yeezy Yeezy Slides Yeezy Supply Golden Goose Golden Goose Sneakers Air Jordan 1 Jordan 1 Jordan Shoes Jordan 1 Air Jordan 1 Jordan 1 Ray Ban Sunglasses Ray Ban Glasses
Reply bape
15:39 on 30 November, 2022 
That is the correct weblog for anybody who wants to seek out out about this topic. You realize a lot its almost exhausting to argue with you (not that I truly would need´┐ŻHaHa). You positively put a brand new spin on a topic thats been written about for years. Nice stuff, just nice!
Reply golden goose
9:34 on 29 November, 2022 
very nice submit, i actually love this website, keep on it
golden goose
Reply Curtispoere
7:53 on 29 November, 2022 
fildena 120 mg
Reply EyeduM
5:30 on 29 November, 2022 
clindamycin price south africa fluoxetine drug clopidogrel 300 mg tablet modafinil uk zoloft buy india
Reply AmyduM
5:29 on 27 November, 2022 
malegra 100 from india