Word game mechanic (reversal)
tatiang
Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
I'm sure this game exists, probably ten-fold but since it just popped into my head I thought I'd see how hard it would be to make. The idea is to find a word that is reversed and highlight it to score points (I still need to add highlighting while the mouse button is down.) This used to be possible but very tedious because it used individual table cells for each letter and they had to be constantly concatenated or individually displayed in an actor.
The nightly build available to Pro members includes some powerful text manipulation functions, which made this much simpler to code. It uses a table to store the letter strings (one for each round) but does all of the letter rearranging and displaying using a single text attribute, a Loop behavior, and the textSubStr() function.
The nightly build available to Pro members includes some powerful text manipulation functions, which made this much simpler to code. It uses a table to store the letter strings (one for each round) but does all of the letter rearranging and displaying using a single text attribute, a Loop behavior, and the textSubStr() function.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Comments
While you are busy with the highlighting, is it sensitive to the direction in which you highlight the letters? I would find it natural to also highlight in reverse.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Well neat, @tatiang, good one! It'll be great if/when these new text manipulation features make their way into the mainstream beta. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
(1) Added bi-directional "live" highlighting (blue highlighting still needs to be widened).
(2) I'm working on the reversal animation for each letter (only 8 frames currently so it's not that smooth looking).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Animating something like that is quite simple. Allowing the user to swipe and control the flipping of the letter, as I've done in the video, is a bit harder.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Oh, it's easy... you come up with them and put them in a table. When you see them again your brain says "wait, that's the word I just entered in the table." )
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx