An unnecessarily long-winded method of displaying numbers too big for GameSalad to display. When viewing big numbers on device, GameSalad doesn't display them in full. This method lets you display them, including adding commas.
Braydon_SFXMember, Sous Chef, Bowlboy SidekickPosts: 9,273
@Armelline said:
I have a ton more but thought it best not to spam too many at once :P Mostly little demos made for people in various threads.
Yep, same. I have an entire folder with dozens of project files in them but I don't want to upload them because I think they are too simple. It's already stuff that has been covered before at some point. :P
@Armelline said: Display Big Numbers (with commas)
An unnecessarily long-winded method of displaying numbers too big for GameSalad to display. When viewing big numbers on device, GameSalad doesn't display them in full. This method lets you display them, including adding commas.
@Armelline said: Display Big Numbers (with commas)
An unnecessarily long-winded method of displaying numbers too big for GameSalad to display. When viewing big numbers on device, GameSalad doesn't display them in full. This method lets you display them, including adding commas.
Great stuff! But I notice that, when the number is between 1,000 and 10,000, it doesn't display the 0 for some reason, e.g. at 1024 it displays 1,24...
@Rainbros said:
Great stuff! But I notice that, when the number is between 1,000 and 10,000, it doesn't display the 0 for some reason, e.g. at 1024 it displays 1,24...
Hmm yes, nasty flaw! Will take a look at fixing it tomorrow.
The annoying thing about the original methods is that they require a fair bit of effort to adapt into your own project. There are more than a couple of attributes that need to be changed and added.
This final method avoids all that by hijacking the self.Max Speed attribute and using that. What this means is that you can now just drag the rules from the demo project into your own project, and with a single change it will function in your project.
Concatenate Booleans using .. with one display text and no extra attributes
Here's an interesting one. Right now you can't concatenate booleans in GameSalad. For most attributes you can say:
"Attribute is: "..game.Attribute
You cannot do this for booleans. This demo shows an easy way to display the current state of the boolean, concatenating it like the example above, without using any extra rules, behaviours or attributes. Just one Display Text behaviour.
PhilipCCEncounter Bay, South AustraliaMemberPosts: 1,390
@Braydon_SFX said:
Yep, same. I have an entire folder with dozens of project files in them but I don't want to upload them because I think they are too simple. It's already stuff that has been covered before at some point. :P
Simple or not, or done before... It doesn't matter. We still love to see them. Often I see something I'd like to use, then someday later when I need it I can't find it anymore. I started filling up a spreadsheet with descriptions and URLs so I could locate stuff, but that started taking up too much time.
So, that's why threads like this with lots of posts are great. Thanks to everyone who contributes.
Braydon_SFXMember, Sous Chef, Bowlboy SidekickPosts: 9,273
edited July 2015
Hide Extra Zeros In Custom Font
A super easy way to hide the extra zeros when using custom font. This does not require any new attributes - it simply requires 1 rule with a textLength() function.
I apologize if this technique has been posted before - I didn't search through all 24 pages of this thread. : - )
Here's a more efficient version of the above, it was already very processor efficient as the dots are produced by the replicate behaviour, but this one is even lighter on the processor . . . and easier to edit.
Cheers, playing around with the values produces all sorts of interesting things, here are - either - some ocean waves, or some rotating tubes (depending on which way you look at it!). Attached.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
@Socks said:
Wobbly BG (maybe for a title or highscore scene). . . attached:
@Rainbros said:
Socks That flag is simply awesome.
Cheers !
@Rainbros said:
Too bad it runs at about 6 FPS on a device
Which one ? The BG wavy flaggy type thing uses replicate for all its dots, so has a small processor overhead, it happily runs at 60fps even on an iPad 2 !
Same deal with the flag on the bendy stick, that one uses particles, which also have a very low processor overhead - that one runs at 60fps on an iPad Air and 60fps on an iPad 2 if you cut the number of particles down a little.
Comments
One Scene Platformer
A demonstration of a way to include multiple levels on the same scene, even when each level is different.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Select Workers
An easy way to select/deselect multiple units.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Display Big Numbers (with commas)
An unnecessarily long-winded method of displaying numbers too big for GameSalad to display. When viewing big numbers on device, GameSalad doesn't display them in full. This method lets you display them, including adding commas.
Edit: File removed, see this post for the new file!
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline is on a roll!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
I have a ton more but thought it best not to spam too many at once :P Mostly little demos made for people in various threads.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Yep, same. I have an entire folder with dozens of project files in them but I don't want to upload them because I think they are too simple. It's already stuff that has been covered before at some point. :P
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
You're on fire @Armelline ! Very useful stuff, thanks:)
Awe you are THE man
Finally commas.
Complete Guide to iOS Publishing {} Complete Guide to Mac Publishing
Great stuff! But I notice that, when the number is between 1,000 and 10,000, it doesn't display the 0 for some reason, e.g. at 1024 it displays 1,24...
+1 !!
Hmm yes, nasty flaw! Will take a look at fixing it tomorrow.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
//
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Last one tonight...
Display Big Numbers (with commas) 4
The annoying thing about the original methods is that they require a fair bit of effort to adapt into your own project. There are more than a couple of attributes that need to be changed and added.
This final method avoids all that by hijacking the self.Max Speed attribute and using that. What this means is that you can now just drag the rules from the demo project into your own project, and with a single change it will function in your project.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Concatenate Booleans using .. with one display text and no extra attributes
Here's an interesting one. Right now you can't concatenate booleans in GameSalad. For most attributes you can say:
"Attribute is: "..game.Attribute
You cannot do this for booleans. This demo shows an easy way to display the current state of the boolean, concatenating it like the example above, without using any extra rules, behaviours or attributes. Just one Display Text behaviour.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
Simple or not, or done before... It doesn't matter. We still love to see them. Often I see something I'd like to use, then someday later when I need it I can't find it anymore. I started filling up a spreadsheet with descriptions and URLs so I could locate stuff, but that started taking up too much time.
So, that's why threads like this with lots of posts are great. Thanks to everyone who contributes.
Hide Extra Zeros In Custom Font
A super easy way to hide the extra zeros when using custom font. This does not require any new attributes - it simply requires 1 rule with a textLength() function.
I apologize if this technique has been posted before - I didn't search through all 24 pages of this thread. : - )
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Wobbly BG (maybe for a title or highscore scene). . . attached:
Here's a more efficient version of the above, it was already very processor efficient as the dots are produced by the replicate behaviour, but this one is even lighter on the processor . . . and easier to edit.
cool wobble effect.
Cheers, playing around with the values produces all sorts of interesting things, here are - either - some ocean waves, or some rotating tubes (depending on which way you look at it!). Attached.
Kind of looks like a waving flag, too.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Yes! It does look a little 'flaggy' . . . . reminds me of this project from a while back (attached).
@Socks stop with your wizardry.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Socks That flag is simply awesome. Too bad it runs at about 6 FPS on a device
Although, it seems that lowering the number of particles to around 100 makes it usable while maintaining a good visual result.
Cheers !
Which one ? The BG wavy flaggy type thing uses replicate for all its dots, so has a small processor overhead, it happily runs at 60fps even on an iPad 2 !
Same deal with the flag on the bendy stick, that one uses particles, which also have a very low processor overhead - that one runs at 60fps on an iPad Air and 60fps on an iPad 2 if you cut the number of particles down a little.
One more wobbly background, this time it settles.
Absolutely stunning.
My Blog / App Store / Google Play
@Socks Fun stuff!!
mediafire.com/download/hoh4q3a9s9nat8h/Wobble_Settle_Play.gameproj.zip
Looking at that feels like I am in a car wash ... ha ha
Free Mini Games and Demo Templates