2015년 1월 3일 토요일

Moving text on a canvas?

I'm a teacher and I'd like to make an app for spelling (in French). Using the MoleMash game idea, I would like to display random words or sentences in speech bubbles, from two distinct lists (right or wrong), over the Mole's (or other animal's) head, as it appears somewhere on the screen. The user would have to touch it only if there's a mistake. 

Since ImageSprites have no "text" parameter, I thought of putting text labels (or buttons) out of the canvas, in an horizontal arrangement, (see screen capture) but it is very static. Would anyone have a suggestion to display text (from a written list, not text that has been drawn on a picture) on the canvas? I saw similar questions on the former forum, but the links aren't working anymore.




How about this Nico?





or ..use an image program like Paint    to create an image with the words/phrases  Bonjour!    Ca va?   in a bubble image.  Like:

Resize it to how large you want your sprite and then    Bonjour!



thank you so much for your detailed answer ; it will both solve my problem and help me learn more about AI2. 
Happy New Year! 



Some more tricks to try ...

You can wiggle the words in the labels in the horizontal arrangement
by sandwiching them between blank labels with clock-controlled widths.


Or you could dynamically create little picture files from your word list
by stamping each word onto  a small word-sized canvas then saving the small canvas to new files at startup time, 
one file per word,
and swap the images of your sprites from that list at pop up time.



Thank you!


댓글 없음:

댓글 쓰기