Technical help needed using tables 3 star system
Adamgopro
Member Posts: 310
ok so in each of my levels when level is complete it counts the amount of stars collected, there are 3 stars placed on each level in total. here is an image of what i need...
What attributes do i need to make and where do they have to be placed? what is the best video tutorial for this using tables for this exact menu type thanks!
What attributes do i need to make and where do they have to be placed? what is the best video tutorial for this using tables for this exact menu type thanks!
Comments
http://m.youtube.com/#/watch?v=4CGRhPfJYL4&desktop_uri=/watch?v=4CGRhPfJYL4
There is not an exact video tutorial of this kind star system(the closest tutorial I know is the one Dues posted) But I know how to do:) Just PM me and I will help you:)
in the end i just had to make a Save and load attribute on the home menu but theres 36 of them and it gets tricky no lag surprisingly but i would still like a table system, its just going to take me sometime to figure it all out but practice makes perfect ey :P
Create a table called Levelstars with as many rows as you have levels
Open the level tile and add an integer attribute.. for example "stars"
Then inside the tile have:
Change Attribute "Stars" to TableCellValue(game.Levelstars,*,1) *=the level number
At the end of each of your levels just have it change the table to update the row with the stars. Then save the table
Finally have you Level tile change depending on the Star Attribute..
If Star = 1 Change Image to (Tile with 1 star)
If Star = 2 Change Image to (Tile with 2 stars)
hope this helps
change image to (TableCellValue(X,X,X).."star")
and then name your images like 1star, 2star, 3star. that rule will take the numeric value from the table and then append star and display the matching image.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left